diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-20 18:30:53 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-20 18:30:53 +0000 |
commit | b967c9918e2eb6b6bc31ba10c9cb0e394273b218 (patch) | |
tree | 87986eebd3e482588635177f36db036e4a2f4124 /src/newgrf_canal.cpp | |
parent | 80931cdd131f4a47eb5f106dc38b7d0259a020f0 (diff) | |
download | openttd-b967c9918e2eb6b6bc31ba10c9cb0e394273b218.tar.xz |
(svn r11934) -Codechange: add persistent random data for river and canal tiles.
Diffstat (limited to 'src/newgrf_canal.cpp')
-rw-r--r-- | src/newgrf_canal.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/newgrf_canal.cpp b/src/newgrf_canal.cpp index f7cc633d7..a2a89d13b 100644 --- a/src/newgrf_canal.cpp +++ b/src/newgrf_canal.cpp @@ -11,6 +11,7 @@ #include "newgrf_spritegroup.h" #include "newgrf_canal.h" #include "tile_map.h" +#include "water_map.h" /** Table of canal 'feature' sprite groups */ @@ -21,7 +22,7 @@ const SpriteGroup *_canal_sg[CF_END]; * three functions are stubs. */ static uint32 CanalGetRandomBits(const ResolverObject *object) { - return 0; + return GetWaterTileRandomBits(object->u.canal.tile); } @@ -47,6 +48,9 @@ static uint32 CanalGetVariable(const ResolverObject *object, byte variable, byte case 0x81: return GetTerrainType(tile); + + case 0x83: + return GetWaterTileRandomBits(tile); } DEBUG(grf, 1, "Unhandled canal property 0x%02X", variable); |