summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-04-06 21:12:28 +0000
committerDarkvater <darkvater@openttd.org>2005-04-06 21:12:28 +0000
commit5a78c32a23c02df5fb4d3d5d0ee6b88bde13e83a (patch)
tree19ed0214f0cf8b55ef631840584039360a5cf801
parent4bd95d756e86b978e8f6ac9e246f820d28133bb9 (diff)
downloadopenttd-5a78c32a23c02df5fb4d3d5d0ee6b88bde13e83a.tar.xz
(svn r2160) - Fix (Regression): Convert rail failed to work; stupid bitshifts :P (sorry)
-rw-r--r--rail_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_gui.c b/rail_gui.c
index 093a2df1f..865d73335 100644
--- a/rail_gui.c
+++ b/rail_gui.c
@@ -452,7 +452,7 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e)
} else if ((e->place.userdata & 0xF) == VPM_X_AND_Y) {
if (GUIPlaceProcDragXY(e)) break;
- if ((e->place.userdata >> 0xF) == GUI_PlaceProc_ConvertRailArea)
+ if ((e->place.userdata >> 4) == GUI_PlaceProc_ConvertRailArea >> 4)
DoCommandP(end_tile, start_tile, _cur_railtype, CcPlaySound10, CMD_CONVERT_RAIL | CMD_MSG(STR_CANT_CONVERT_RAIL));
} else if (e->place.userdata == VPM_X_AND_Y_LIMITED) {
HandleStationPlacement(start_tile, end_tile);