diff options
author | rubidium <rubidium@openttd.org> | 2007-11-15 18:21:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-15 18:21:59 +0000 |
commit | 59a6e40ed215319b6fe1feace41b7f745e28364a (patch) | |
tree | 9da03edcf303a22c3c11c18e658865c79e06599b /src/viewport.cpp | |
parent | 7faec2f54d3dc0ffb7dc14f9d151284de511a248 (diff) | |
download | openttd-59a6e40ed215319b6fe1feace41b7f745e28364a.tar.xz |
(svn r11439) -Codechange: replace some magic numbers by a ViewportPlaceMethod enumified constant. Patch by SmatZ.
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index fa816b6fb..c8247acf2 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -2294,7 +2294,7 @@ void UpdateTileSelection() } /** highlighting tiles while only going over them with the mouse */ -void VpStartPlaceSizing(TileIndex tile, byte method, byte process) +void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, byte process) { _thd.select_method = method; _thd.select_proc = process; @@ -2631,7 +2631,7 @@ static void CalcRaildirsDrawstyle(TileHighlightData *thd, int x, int y, int meth * @param y Y coordinate of end of selection * @param method modifies the way tiles are selected. Possible * methods are VPM_* in viewport.h */ -void VpSelectTilesWithMethod(int x, int y, int method) +void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method) { int sx, sy; HighLightStyle style; |