From 40952d8107676b994d0d029cc593837e38ab6d36 Mon Sep 17 00:00:00 2001 From: Evghenii Date: Thu, 5 Sep 2024 14:26:37 -0400 Subject: [PATCH] Fixed bots not updating their position in multiplayer --- src/sv_commands.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sv_commands.cpp b/src/sv_commands.cpp index a9a7e75f5..ec819f49d 100644 --- a/src/sv_commands.cpp +++ b/src/sv_commands.cpp @@ -264,7 +264,10 @@ void SERVERCOMMANDS_MovePlayer( ULONG ulPlayer, ULONG ulPlayerExtra, ServerComma ServerCommands::MovePlayer fullCommand; fullCommand.SetPlayer ( &players[ulPlayer] ); - fullCommand.SetClientTicOnServerEnd ( SERVER_GetClient( ulPlayer )->ulClientGameTic ); + if ( players[ulPlayer].bIsBot ) + fullCommand.SetClientTicOnServerEnd ( gametic ); + else + fullCommand.SetClientTicOnServerEnd ( SERVER_GetClient( ulPlayer )->ulClientGameTic ); fullCommand.SetIsVisible( true ); fullCommand.SetX( players[ulPlayer].mo->x ); fullCommand.SetY( players[ulPlayer].mo->y );