Krazick / 18XX-Game-Engine

18XX Game Engine
MIT License
2 stars 0 forks source link

For 1856, Toronto Upgrade to Grey Tile does not promote tokens to the tile on remote clients #244

Closed Krazick closed 3 months ago

Krazick commented 4 months ago

For the 1856 Game, Toronto Brown Tile (#122) has two double cities, and Grey Tile (#124) has one quad (4 station) City. ON the Local game, it properly promotes the tile, and tokens are carried forward. ON the Remote Client, only the Tokens from the left side city are carried over.

Krazick commented 3 months ago

Updates applied to capture the token locations after the upgrade of a tile to the next tier are saved in the LayTileEffect, and then used to replace the tokens onto the new tile placed on the MapCell. This will resolve the issue when the Number of Cities changes (generally reduced) as a side effect of the upgrade. This will fix for Remote Clients, as well as correct the undo failures. Fixes the same issue on the THB Home Tile. (Hamilton).