(svn r1575) -Fix: Forgot to exit the construction phase for the waypoint window (if
you have newgrfs loaded)
This commit is contained in:
@@ -819,12 +819,11 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) {
|
|||||||
}
|
}
|
||||||
CheckRedrawStationCoverage(w);
|
CheckRedrawStationCoverage(w);
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case WE_DESTROY:
|
case WE_DESTROY:
|
||||||
ResetObjectToPlace();
|
ResetObjectToPlace();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Widget _station_builder_widgets[] = {
|
static const Widget _station_builder_widgets[] = {
|
||||||
@@ -978,6 +977,10 @@ static void BuildWaypointWndProc(Window *w, WindowEvent *e)
|
|||||||
if (WP(w,def_d).close)
|
if (WP(w,def_d).close)
|
||||||
DeleteWindow(w);
|
DeleteWindow(w);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
case WE_DESTROY:
|
||||||
|
ResetObjectToPlace();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user