(svn r11934) -Codechange: add persistent random data for river and canal tiles.

This commit is contained in:
2008-01-20 18:30:53 +00:00
parent ffb9ca164e
commit 9ca929c812
5 changed files with 27 additions and 12 deletions

View File

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