(svn r11938) -Codechange: support loading of canal/river properties (though still ignored)

This commit is contained in:
2008-01-21 20:41:04 +00:00
parent 0a6425926b
commit ca1b3e7b4e
3 changed files with 46 additions and 7 deletions

View File

@@ -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;