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/functions.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/functions.h')
-rw-r--r-- | src/functions.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/functions.h b/src/functions.h index 4ba233d4d..ec680e7e8 100644 --- a/src/functions.h +++ b/src/functions.h @@ -6,6 +6,7 @@ #define FUNCTIONS_H #include "gfx.h" +#include "viewport.h" void UpdateTownMaxPass(Town *t); @@ -123,8 +124,8 @@ void InvalidateWindowClassesData(WindowClass cls); void DeleteWindowById(WindowClass cls, WindowNumber number); void DeleteWindowByClass(WindowClass cls); -void SetObjectToPlaceWnd(CursorID icon, SpriteID pal, byte mode, Window *w); -void SetObjectToPlace(CursorID icon, SpriteID pal, byte mode, WindowClass window_class, WindowNumber window_num); +void SetObjectToPlaceWnd(CursorID icon, SpriteID pal, ViewportHighlightMode mode, Window *w); +void SetObjectToPlace(CursorID icon, SpriteID pal, ViewportHighlightMode mode, WindowClass window_class, WindowNumber window_num); void ResetObjectToPlace(); |