Skip to content

Commit

Permalink
Fixed bots not updating their position in multiplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
Evghenii committed Sep 5, 2024
1 parent a197f69 commit 40952d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sv_commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 40952d8

Please sign in to comment.