branch | NewGRF_ports |
changeset 6877 | 889301acc299 |
parent 6872 | 1c4a4a609f85 |
child 10184 | fcf5fb2548eb |
--- a/src/newgrf_canal.cpp Sun Feb 03 01:34:21 2008 +0000 +++ b/src/newgrf_canal.cpp Sun Feb 03 20:34:26 2008 +0000 @@ -22,7 +22,8 @@ * three functions are stubs. */ static uint32 CanalGetRandomBits(const ResolverObject *object) { - return GetWaterTileRandomBits(object->u.canal.tile); + /* Return random bits only for water tiles, not station tiles */ + return IsTileType(object->u.canal.tile, MP_WATER) ? GetWaterTileRandomBits(object->u.canal.tile) : 0; }