(svn r12135) -Codechange: Road and rail bridge selection windows were identical apart the caption. So remove one window definition and set manually the caption accordingly.

-Codechange: prepare the "type" of bridge parameter only once, at the beginning of the selection process.  Makes less magic around.
This commit is contained in:
belugas
2008-02-14 02:57:38 +00:00
parent a0ddc43e92
commit 81b3652f37
4 changed files with 12 additions and 29 deletions

View File

@@ -532,7 +532,7 @@ static void BuildRoadToolbWndProc(Window *w, WindowEvent *e)
switch (e->we.place.select_proc) {
case DDSP_BUILD_BRIDGE:
ResetObjectToPlace();
ShowBuildBridgeWindow(start_tile, end_tile, 0x80 | RoadTypeToRoadTypes(_cur_roadtype));
ShowBuildBridgeWindow(start_tile, end_tile, TRANSPORT_ROAD, RoadTypeToRoadTypes(_cur_roadtype));
break;
case DDSP_DEMOLISH_AREA: