summaryrefslogtreecommitdiff
path: root/engine.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-14 15:49:43 +0000
committerDarkvater <darkvater@openttd.org>2006-10-14 15:49:43 +0000
commitdad5d5dd72a32b3dbaea68c71e996f053fa557e7 (patch)
tree4d65683dddf832ac860c3ff0f26f99db4e9ea997 /engine.c
parentabb0fa7bc53d755463d6cb314ac6044b5dcb22af (diff)
downloadopenttd-dad5d5dd72a32b3dbaea68c71e996f053fa557e7.tar.xz
(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to PLAYER_SPECTATOR and
put it into player.h where it belongs (instead of map.h)
Diffstat (limited to 'engine.c')
-rw-r--r--engine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine.c b/engine.c
index 02270e311..fc0b35c85 100644
--- a/engine.c
+++ b/engine.c
@@ -227,7 +227,7 @@ static PlayerID GetBestPlayer(PlayerID pp)
do {
best_hist = -1;
- best_player = OWNER_SPECTATOR;
+ best_player = PLAYER_SPECTATOR;
FOR_ALL_PLAYERS(p) {
if (p->is_active && p->block_preview == 0 && !HASBIT(mask, p->index) &&
p->old_economy[0].performance_history > best_hist) {
@@ -236,7 +236,7 @@ static PlayerID GetBestPlayer(PlayerID pp)
}
}
- if (best_player == OWNER_SPECTATOR) return OWNER_SPECTATOR;
+ if (best_player == PLAYER_SPECTATOR) return PLAYER_SPECTATOR;
SETBIT(mask, best_player);
} while (--pp != 0);
@@ -263,7 +263,7 @@ void EnginesDailyLoop(void)
} else if (e->preview_player != 0xFF) {
PlayerID best_player = GetBestPlayer(e->preview_player);
- if (best_player == OWNER_SPECTATOR) {
+ if (best_player == PLAYER_SPECTATOR) {
e->preview_player = 0xFF;
continue;
}