summaryrefslogtreecommitdiff
path: root/spritecache.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2005-01-19 20:55:23 +0000
committerdominik <dominik@openttd.org>2005-01-19 20:55:23 +0000
commitf7e39977de019d2bf20c4850fa3aa28deeb75854 (patch)
tree4721eddc93c76f7d2ab9c04a82bbb528732eeda1 /spritecache.c
parentd419f9b2f07843341c38c5d78875685f82bbd691 (diff)
downloadopenttd-f7e39977de019d2bf20c4850fa3aa28deeb75854.tar.xz
(svn r1571) Feature: Visually enhanced autorail placing
When using the autorail tool, the rail pieces which are going to be build are highlighted. If a piece is shown in red, this indicates that the slope/rail combination is impossible. It does not tell you if the rail line construction might not be possible because of other obstacles, e.g. houses or water.
Diffstat (limited to 'spritecache.c')
-rw-r--r--spritecache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/spritecache.c b/spritecache.c
index fae4238ea..c7f32b4f3 100644
--- a/spritecache.c
+++ b/spritecache.c
@@ -883,6 +883,9 @@ static void LoadSpriteTables()
LoadGrfIndexed("trkfoundw.grf", _slopes_spriteindexes[_opt.landscape], i++);
+ load_index = SPR_AUTORAIL_BASE;
+ load_index += LoadGrfFile("autorail.grf", load_index, i++);
+
load_index = SPR_CANALS_BASE;
load_index += LoadGrfFile("canalsw.grf", load_index, i++);