summaryrefslogtreecommitdiff
path: root/src/landscape.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-07-19 17:00:54 +0000
committerrubidium <rubidium@openttd.org>2010-07-19 17:00:54 +0000
commit5a836cdec79cea79ff3ef69c08f13a0546c6dacd (patch)
treeb99ecea2bc6ed091855a354725adcf308c7c5ada /src/landscape.cpp
parent34764feac226f4a962cfa7957db79feb617c900c (diff)
downloadopenttd-5a836cdec79cea79ff3ef69c08f13a0546c6dacd.tar.xz
(svn r20187) -Codechange: move _tileh_to_sprite into a function in a more logical place and with a more descriptive name
Diffstat (limited to 'src/landscape.cpp')
-rw-r--r--src/landscape.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp
index 25b41d130..5352a6467 100644
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -63,8 +63,8 @@ const TileTypeProcs * const _tile_type_procs[16] = {
&_tile_type_unmovable_procs, ///< Callback functions for MP_UNMOVABLE tiles
};
-/* landscape slope => sprite */
-const byte _tileh_to_sprite[32] = {
+/** landscape slope => sprite */
+extern const byte _slope_to_sprite_offset[32] = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0,
0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 17, 0, 15, 18, 0,
};