summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-08-10 14:14:00 +0000
committerdarkvater <darkvater@openttd.org>2004-08-10 14:14:00 +0000
commit804f038594ccd7d12b776299038f9bc5809f90e5 (patch)
tree55ef141185c7dd684c505675aec96c660a9bae71 /players.c
parentefaeb275f78e18d594d9ee8ff04eccd2dc59512c (diff)
downloadopenttd-804f038594ccd7d12b776299038f9bc5809f90e5.tar.xz
(svn r2) -Fix [993829] UDP Fixes (lucaspiller)
-Fix change 255/0xFF to OWNER_SPECTATOR for spectator stuff (TrueLight)
Diffstat (limited to 'players.c')
-rw-r--r--players.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/players.c b/players.c
index 4b27ab0bf..542b12341 100644
--- a/players.c
+++ b/players.c
@@ -581,7 +581,7 @@ void PlayersYearlyLoop()
}
}
- if (_patches.show_finances && _local_player != 0xff) {
+ if (_patches.show_finances && _local_player != OWNER_SPECTATOR) {
ShowPlayerFinances(_local_player);
p = DEREF_PLAYER(_local_player);
if (p->num_valid_stat_ent > 5 && p->old_economy[0].performance_history < p->old_economy[4].performance_history) {
@@ -632,7 +632,7 @@ int32 CmdPlayerCtrl(int x, int y, uint32 flags, uint32 p1, uint32 p2)
switch(p1 & 0xff) {
case 0: // make new player
p = DoStartupNewPlayer(false);
- if (_local_player == 0xff && p != NULL) {
+ if (_local_player == OWNER_SPECTATOR && p != NULL) {
_local_player = p->index;
MarkWholeScreenDirty();
}