(svn r13160) -Codechange: prepare GUIPlaceProcDragXY for the removal of WindowEvent.

This commit is contained in:
rubidium
2008-05-18 12:40:38 +00:00
parent a426047441
commit fc4393dcfe
9 changed files with 19 additions and 20 deletions

View File

@@ -610,6 +610,7 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e)
TileIndex end_tile = e->we.place.tile;
switch (e->we.place.select_proc) {
default: NOT_REACHED();
case DDSP_BUILD_BRIDGE:
ResetObjectToPlace();
ShowBuildBridgeWindow(start_tile, end_tile, TRANSPORT_RAIL, _cur_railtype);
@@ -624,7 +625,7 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e)
break;
case DDSP_DEMOLISH_AREA:
GUIPlaceProcDragXY(e);
GUIPlaceProcDragXY(e->we.place.select_proc, e->we.place.starttile, e->we.place.tile);
break;
case DDSP_CONVERT_RAIL: