summaryrefslogtreecommitdiff
path: root/src/newgrf_canal.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-21 20:41:04 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-21 20:41:04 +0000
commit9d754a7f7684295e18661aa7ed361f3c4c5b1ca8 (patch)
tree060191c8dc0f46b1574782e94ce94e62a7aff3ae /src/newgrf_canal.cpp
parent2e63435124dc99033866d202cf80c6a6be92a7c4 (diff)
downloadopenttd-9d754a7f7684295e18661aa7ed361f3c4c5b1ca8.tar.xz
(svn r11938) -Codechange: support loading of canal/river properties (though still ignored)
Diffstat (limited to 'src/newgrf_canal.cpp')
-rw-r--r--src/newgrf_canal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_canal.cpp b/src/newgrf_canal.cpp
index a2a89d13b..1a276ea7d 100644
--- a/src/newgrf_canal.cpp
+++ b/src/newgrf_canal.cpp
@@ -15,7 +15,7 @@
/** Table of canal 'feature' sprite groups */
-const SpriteGroup *_canal_sg[CF_END];
+WaterFeature _water_feature[CF_END];
/* Random bits and triggers are not supported for canals, so the following
@@ -94,7 +94,7 @@ SpriteID GetCanalSprite(CanalFeature feature, TileIndex tile)
NewCanalResolver(&object, tile);
- group = Resolve(_canal_sg[feature], &object);
+ group = Resolve(_water_feature[feature].group, &object);
if (group == NULL || group->type != SGT_RESULT) return 0;
return group->g.result.sprite;