(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:
bjarni 2005-01-22 23:11:25 +00:00
parent e5cd6b6193
commit 8313879b3c
1 changed files with 2 additions and 0 deletions

View File

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