From 59a6e40ed215319b6fe1feace41b7f745e28364a Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 15 Nov 2007 18:21:59 +0000 Subject: (svn r11439) -Codechange: replace some magic numbers by a ViewportPlaceMethod enumified constant. Patch by SmatZ. --- src/viewport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/viewport.cpp') 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; -- cgit v1.2.3-54-g00ecf