mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Fix #9083: Wrong sign index is set for clients
This issue was caused by the ghost for banners, which already create an entry on the banner. The game command is then received while the ghost still exists, giving the placed banner another ID. This fix is basically a copy of the fix that is also `game_do_command_p` that tackles this same issue.
This commit is contained in:
@@ -1976,6 +1976,17 @@ void Network::ProcessGameCommands()
|
||||
|
||||
if (gc.action != nullptr)
|
||||
{
|
||||
// Remove ghost scenery so it doesn't interfere with incoming network command
|
||||
switch (gc.action->GetType())
|
||||
{
|
||||
case GAME_COMMAND_PLACE_WALL:
|
||||
case GAME_COMMAND_PLACE_LARGE_SCENERY:
|
||||
case GAME_COMMAND_PLACE_BANNER:
|
||||
case GAME_COMMAND_PLACE_SCENERY:
|
||||
scenery_remove_ghost_tool_placement();
|
||||
break;
|
||||
}
|
||||
|
||||
GameAction* action = gc.action.get();
|
||||
action->SetFlags(action->GetFlags() | GAME_COMMAND_FLAG_NETWORKED);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user