summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-26 08:53:16 +0000
committerrubidium <rubidium@openttd.org>2009-05-26 08:53:16 +0000
commit984bd3b98d6a7ad40fdfa9ef74da79dbd7de8840 (patch)
treec327cfdd375c86670b3c671a5985c32828a2514c /src/roadveh_cmd.cpp
parent462c1ec4f3f3bb5745bb5b541bd2a93b1784d829 (diff)
downloadopenttd-984bd3b98d6a7ad40fdfa9ef74da79dbd7de8840.tar.xz
(svn r16427) -Codechange: replace a few magic numbers with an existing constant and unduplicate a few lines.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 1af83b6e6..41213de94 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -93,7 +93,7 @@ static SpriteID GetRoadVehIcon(EngineID engine)
spritenum = Engine::Get(engine)->image_index;
}
- return 6 + _roadveh_images[spritenum];
+ return DIR_W + _roadveh_images[spritenum];
}
SpriteID RoadVehicle::GetImage(Direction direction) const