summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-12-26 12:56:48 +0000
committerrubidium <rubidium@openttd.org>2006-12-26 12:56:48 +0000
commit9560a1d9ec28080ab2fd49f760591da5fe85a08d (patch)
treeb5bcd33d161b6f6ae2e80e6b0e7ad2f3badc52ff /misc_gui.c
parent80c3be09fce9f7c1ae41fa9f4984dd0941073feb (diff)
downloadopenttd-9560a1d9ec28080ab2fd49f760591da5fe85a08d.tar.xz
(svn r7561) -Fix (FS#431): core and (patches) GUI were not in-sync with respect to autorenew settings. This is only a temporary fix, as the definite fix needs to move the autorenew settings to a per-company settings window.
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c
index a5ad7cb21..e5ffef5c3 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1647,7 +1647,8 @@ static int32 ClickChangePlayerCheat(int32 p1, int32 p2)
{
while (IsValidPlayer((PlayerID)p1)) {
if (_players[p1].is_active) {
- _local_player = (PlayerID)p1;
+ SetLocalPlayer((PlayerID)p1);
+
MarkWholeScreenDirty();
return _local_player;
}