diff options
author | peter1138 <peter1138@openttd.org> | 2008-07-25 17:33:53 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-07-25 17:33:53 +0000 |
commit | 7cdd6ef33c93abe307b69e0b73a83d5dba1df921 (patch) | |
tree | 0e99d8a02090e6fe873b12e61d26450f6b2122e0 /src/engine.cpp | |
parent | 64833bb84f0f0306464ebf3a4ad6049f56d2a977 (diff) | |
download | openttd-7cdd6ef33c93abe307b69e0b73a83d5dba1df921.tar.xz |
(svn r13825) -Revert (r13821 partially): preview_player_rank wasn't a PlayerByte value in r12143, and still isn't a PlayerByte value.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index ab8aed61d..3808c46a8 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -342,11 +342,11 @@ void EnginesDailyLoop() DeleteWindowById(WC_ENGINE_PREVIEW, i); e->preview_player_rank++; } - } else if (e->preview_player_rank != PLAYER_SPECTATOR) { + } else if (e->preview_player_rank != 0xFF) { PlayerID best_player = GetBestPlayer(e->preview_player_rank); if (best_player == PLAYER_SPECTATOR) { - e->preview_player_rank = PLAYER_SPECTATOR; + e->preview_player_rank = 0xFF; continue; } |