summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-11-10 18:34:19 +0000
committerDarkvater <darkvater@openttd.org>2006-11-10 18:34:19 +0000
commitd0e0b78a3264f888ed5995ba9ca4a8bf2cf8a2d2 (patch)
tree939c05a9e44caec768e4d59012e966a3303a3c68
parent73ca5faa2efe6abd28aadacbccf9d5a02f13c7a3 (diff)
downloadopenttd-d0e0b78a3264f888ed5995ba9ca4a8bf2cf8a2d2.tar.xz
(svn r7126) -Synchronize the engine-renew settings of a player when joining a multiplayer game.
-rw-r--r--players.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/players.c b/players.c
index 623636b95..3e4314568 100644
--- a/players.c
+++ b/players.c
@@ -860,6 +860,8 @@ int32 CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (_local_player != _network_playas) {
assert(_local_player == PLAYER_SPECTATOR && _network_playas == p->index);
_local_player = p->index;
+ DoCommandP(0, (_patches.autorenew << 15 ) | (_patches.autorenew_months << 16) | 4, _patches.autorenew_money, NULL, CMD_SET_AUTOREPLACE);
+
MarkWholeScreenDirty();
}