summaryrefslogtreecommitdiff
path: root/src/gui.h
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-05-23 12:45:56 +0000
committermaedhros <maedhros@openttd.org>2007-05-23 12:45:56 +0000
commitca5c578d0f51724d9c4e5b1101b81b442c049341 (patch)
tree6595e32b2d16537c3647b01f1ff39b07b4d0f57a /src/gui.h
parent9f148789c8ddb64bdc098d24a87aad3293d034b2 (diff)
downloadopenttd-ca5c578d0f51724d9c4e5b1101b81b442c049341.tar.xz
(svn r9900) -Codechange: Separate the variables for how to highlight a land area and what to do with it afterwards.
Diffstat (limited to 'src/gui.h')
-rw-r--r--src/gui.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/gui.h b/src/gui.h
index 199410635..281f1b9cb 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -68,14 +68,15 @@ void PlaceProc_DemolishArea(TileIndex tile);
void PlaceProc_LevelLand(TileIndex tile);
bool GUIPlaceProcDragXY(const WindowEvent *e);
-enum { // max 32 - 4 = 28 types
- GUI_PlaceProc_DemolishArea = 0 << 4,
- GUI_PlaceProc_LevelArea = 1 << 4,
- GUI_PlaceProc_DesertArea = 2 << 4,
- GUI_PlaceProc_WaterArea = 3 << 4,
- GUI_PlaceProc_ConvertRailArea = 4 << 4,
- GUI_PlaceProc_RockyArea = 5 << 4,
- GUI_PlaceProc_RemoveFromStation = 6 << 4,
+enum {
+ GUI_PlaceProc_None,
+ GUI_PlaceProc_DemolishArea,
+ GUI_PlaceProc_LevelArea,
+ GUI_PlaceProc_DesertArea,
+ GUI_PlaceProc_WaterArea,
+ GUI_PlaceProc_ConvertRailArea,
+ GUI_PlaceProc_RockyArea,
+ GUI_PlaceProc_RemoveFromStation,
};
/* misc_gui.cpp */