summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-15 15:19:51 +0000
committertruelight <truelight@openttd.org>2004-12-15 15:19:51 +0000
commit29b844a408c3aaaf747f63b377bbfe15c597551f (patch)
tree89befd7f731a8422e3db185aa041d725963b7aad /players.c
parentc8ca2a860412b7fb85bb56e1fc0c7a93b0d0ec6f (diff)
downloadopenttd-29b844a408c3aaaf747f63b377bbfe15c597551f.tar.xz
(svn r1096) -Fix: [Network] PlayAs is now registered correctly
-Codewise: [Network] Cleaned some code, removed some comment, changed some wrong comment
Diffstat (limited to 'players.c')
-rw-r--r--players.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/players.c b/players.c
index 9dcd727cd..039654df3 100644
--- a/players.c
+++ b/players.c
@@ -662,8 +662,6 @@ int32 CmdPlayerCtrl(int x, int y, uint32 flags, uint32 p1, uint32 p2)
_docommand_recursive = 0;
DoCommandP(0, ci->client_playas-1, 0, NULL, CMD_CHANGE_PRESIDENT_NAME | CMD_MSG(STR_700D_CAN_T_CHANGE_PRESIDENT));
}
- } else {
- _network_playas = p->index + 1;
}
} else {
if (_network_server) {
@@ -672,8 +670,6 @@ int32 CmdPlayerCtrl(int x, int y, uint32 flags, uint32 p1, uint32 p2)
ci = &_network_client_info[p2];
ci->client_playas = OWNER_SPECTATOR;
NetworkUpdateClientInfo(ci->client_index);
- } else {
- _network_playas = OWNER_SPECTATOR;
}
#endif /* ENABLE_NETWORK */
}