(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:
@@ -549,7 +549,7 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e)
|
||||
switch (e->we.place.select_proc) {
|
||||
case DDSP_BUILD_BRIDGE:
|
||||
ResetObjectToPlace();
|
||||
ShowBuildBridgeWindow(start_tile, end_tile, _cur_railtype);
|
||||
ShowBuildBridgeWindow(start_tile, end_tile, TRANSPORT_RAIL, _cur_railtype);
|
||||
break;
|
||||
|
||||
case DDSP_PLACE_AUTORAIL:
|
||||
@@ -1579,3 +1579,4 @@ void SetDefaultRailGui()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user