# HG changeset patch # User peter1138 # Date 2008-07-25 17:33:53 # Node ID d1452202c62ea1a816a6697fb358c19bb4eefada # Parent 473537cb55ca215ec20c01643a61859c6def6236 (svn r13825) -Revert (r13821 partially): preview_player_rank wasn't a PlayerByte value in r12143, and still isn't a PlayerByte value. diff --git a/src/engine.cpp b/src/engine.cpp --- 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; } diff --git a/src/engine_base.h b/src/engine_base.h --- a/src/engine_base.h +++ b/src/engine_base.h @@ -20,7 +20,7 @@ struct Engine : PoolItem