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
commit39c4c70c68c510f4de293880fbda0ceac2fcbcef (patch)
tree19ed0214f0cf8b55ef631840584039360a5cf801
parent62b1e657c980d58f106f18a9c4be53e990bcba54 (diff)
downloadopenttd-39c4c70c68c510f4de293880fbda0ceac2fcbcef.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);