mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r1597) fix: autoreplace vehicle lists are now redrawn when a new vehicle becomes available (thanks LordOfThePigs for pointing this one out)
This commit is contained in:
parent
e5cd6b6193
commit
8313879b3c
2
engine.c
2
engine.c
@ -651,6 +651,7 @@ void AcceptEnginePreview(Engine *e, int player)
|
||||
|
||||
e->preview_player = 0xFF;
|
||||
InvalidateWindowClasses(WC_BUILD_VEHICLE);
|
||||
InvalidateWindowClasses(WC_REPLACE_VEHICLE);
|
||||
}
|
||||
|
||||
void EnginesDailyLoop(void)
|
||||
@ -756,6 +757,7 @@ static void NewVehicleAvailable(Engine *e)
|
||||
|
||||
e->flags = (e->flags & ~ENGINE_INTRODUCING) | ENGINE_AVAILABLE;
|
||||
InvalidateWindowClasses(WC_BUILD_VEHICLE);
|
||||
InvalidateWindowClasses(WC_REPLACE_VEHICLE);
|
||||
|
||||
// Now available for all players
|
||||
e->player_avail = (byte)-1;
|
||||
|
Loading…
Reference in New Issue
Block a user