diff options
author | rubidium <rubidium@openttd.org> | 2007-11-15 18:28:00 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-15 18:28:00 +0000 |
commit | ecdb16de42874125991b1e770616e46e9c4d24bb (patch) | |
tree | 4bd44853b9e7e9c29ae281bd657c1996f6290daa /src/viewport.h | |
parent | c5a9fd4559bd6858f4f11820e5e994cca1afa2a5 (diff) | |
download | openttd-ecdb16de42874125991b1e770616e46e9c4d24bb.tar.xz |
(svn r11440) -Codechange: replace magic numbers with enumified WindowHighlightMode constants. Patch by SmatZ.
Diffstat (limited to 'src/viewport.h')
-rw-r--r-- | src/viewport.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.h b/src/viewport.h index ebc0e27d1..e436edae3 100644 --- a/src/viewport.h +++ b/src/viewport.h @@ -87,7 +87,7 @@ enum ViewportPlaceMethod { }; /* viewport highlight mode (for highlighting tiles below cursor) */ -enum { +enum ViewportHighlightMode { VHM_NONE = 0, ///< default VHM_RECT = 1, ///< rectangle (stations, depots, ...) VHM_POINT = 2, ///< point (lower land, raise land, level land, ...) @@ -156,7 +156,7 @@ struct TileHighlightData { /* common button handler */ -bool HandlePlacePushButton(Window *w, int widget, CursorID cursor, int mode, PlaceProc *placeproc); +bool HandlePlacePushButton(Window *w, int widget, CursorID cursor, ViewportHighlightMode mode, PlaceProc *placeproc); VARDEF Point _tile_fract_coords; |