1
0
Fork 0

(svn r6715) -Fix r6714: roadvehicle and ship building windows are now also marked dirty when getting a WE_INVALIDATE_DATA event

This will make the windows mark dirty again when a new vehicle is available or one is removed from the list (again)
release/0.5
bjarni 2006-10-10 08:24:29 +00:00
parent 238b34e000
commit 6b42ffc95e
2 changed files with 8 additions and 0 deletions

View File

@ -453,6 +453,10 @@ void CcBuildRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2)
static void NewRoadVehWndProc(Window *w, WindowEvent *e)
{
switch (e->event) {
case WE_INVALIDATE_DATA:
SetWindowDirty(w);
break;
case WE_PAINT:
DrawNewRoadVehWindow(w);
break;

View File

@ -244,6 +244,10 @@ void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2)
static void NewShipWndProc(Window *w, WindowEvent *e)
{
switch (e->event) {
case WE_INVALIDATE_DATA:
SetWindowDirty(w);
break;
case WE_PAINT: {
EngineID selected_id;
EngineID eid;