mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-05 13:57:01 +00:00
(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:
parent
64833bb84f
commit
7cdd6ef33c
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user