mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r7126) -Synchronize the engine-renew settings of a player when joining a multiplayer game.
This commit is contained in:
parent
73ca5faa2e
commit
d0e0b78a32
@ -860,6 +860,8 @@ int32 CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
if (_local_player != _network_playas) {
|
if (_local_player != _network_playas) {
|
||||||
assert(_local_player == PLAYER_SPECTATOR && _network_playas == p->index);
|
assert(_local_player == PLAYER_SPECTATOR && _network_playas == p->index);
|
||||||
_local_player = p->index;
|
_local_player = p->index;
|
||||||
|
DoCommandP(0, (_patches.autorenew << 15 ) | (_patches.autorenew_months << 16) | 4, _patches.autorenew_money, NULL, CMD_SET_AUTOREPLACE);
|
||||||
|
|
||||||
MarkWholeScreenDirty();
|
MarkWholeScreenDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user