forked from rosebudai/OpenRCT2-Web
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:
1 parent
cdf587080c
commit
70fc620ebe
1 file changed
+11
@@ -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