equal
deleted
inserted
replaced
536 void OnTick_Trees(void) |
536 void OnTick_Trees(void) |
537 { |
537 { |
538 uint32 r; |
538 uint32 r; |
539 TileIndex tile; |
539 TileIndex tile; |
540 ClearGround ct; |
540 ClearGround ct; |
541 int tree; |
541 TreeType tree; |
542 |
542 |
543 /* place a tree at a random rainforest spot */ |
543 /* place a tree at a random rainforest spot */ |
544 if (_opt.landscape == LT_DESERT && |
544 if (_opt.landscape == LT_DESERT && |
545 (r = Random(), tile = RandomTileSeed(r), GetMapExtraBits(tile) == 2) && |
545 (r = Random(), tile = RandomTileSeed(r), GetMapExtraBits(tile) == 2) && |
546 IsTileType(tile, MP_CLEAR) && |
546 IsTileType(tile, MP_CLEAR) && |