diff options
author | rubidium <rubidium@openttd.org> | 2009-04-18 21:10:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-18 21:10:36 +0000 |
commit | b66783afabf6ca4702d372526b8eb3d64f30caa7 (patch) | |
tree | af543b476b3af2651a73abb4cb04119d47d84f7d /src/tilehighlight_type.h | |
parent | 25cdef9523e2b4dd7c00d53cd9d9c259da8ad0d9 (diff) | |
download | openttd-b66783afabf6ca4702d372526b8eb3d64f30caa7.tar.xz |
(svn r16086) -Codechange: magic numbers substitutes by enums and some type safety
Diffstat (limited to 'src/tilehighlight_type.h')
-rw-r--r-- | src/tilehighlight_type.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tilehighlight_type.h b/src/tilehighlight_type.h index 1ad04d9ea..934aaa13a 100644 --- a/src/tilehighlight_type.h +++ b/src/tilehighlight_type.h @@ -39,6 +39,7 @@ enum HighLightStyle { HT_DIR_HL = 3, ///< horizontal lower HT_DIR_VL = 4, ///< vertical left HT_DIR_VR = 5, ///< vertical right + HT_DIR_END, ///< end marker HT_DIR_MASK = 0x7 ///< masks the drag-direction }; DECLARE_ENUM_AS_BIT_SET(HighLightStyle); @@ -59,9 +60,9 @@ struct TileHighlightData { byte dirty; byte sizelimit; - byte drawstyle; // lower bits 0-3 are reserved for detailed highlight information information - byte new_drawstyle; // only used in UpdateTileSelection() to as a buffer to compare if there was a change between old and new - byte next_drawstyle; // queued, but not yet drawn style + HighLightStyle drawstyle; // lower bits 0-3 are reserved for detailed highlight information information + HighLightStyle new_drawstyle; // only used in UpdateTileSelection() to as a buffer to compare if there was a change between old and new + HighLightStyle next_drawstyle; // queued, but not yet drawn style ViewportHighlightMode place_mode; bool make_square_red; |