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 | dace4686c00d02e9640bc41720d845f097e7591b (patch) | |
tree | 4bd44853b9e7e9c29ae281bd657c1996f6290daa /src/viewport.h | |
parent | 59a6e40ed215319b6fe1feace41b7f745e28364a (diff) | |
download | openttd-dace4686c00d02e9640bc41720d845f097e7591b.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; |