Mercurial > hg > openttd
changeset 5068:0add58cb9880 draft
(svn r7126) -Synchronize the engine-renew settings of a player when joining a multiplayer game.
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Fri, 10 Nov 2006 18:34:19 +0000 |
parents | 69a8138f1456 |
children | 19a5b19d7c78 |
files | players.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/players.c +++ b/players.c @@ -860,6 +860,8 @@ 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(); }