(svn r13825) -Revert (r13821 partially): preview_player_rank wasn't a PlayerByte value in r12143, and still isn't a PlayerByte value.

This commit is contained in:
peter1138 2008-07-25 17:33:53 +00:00
parent 64833bb84f
commit 7cdd6ef33c
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -20,7 +20,7 @@ struct Engine : PoolItem<Engine, EngineID, &_Engine_pool> {
uint16 duration_phase_1, duration_phase_2, duration_phase_3;
byte lifelength;
byte flags;
PlayerByte preview_player_rank;
uint8 preview_player_rank;
byte preview_wait;
PlayerMask player_avail;
uint8 image_index; ///< Original vehicle image index