| 642 | } |
| 643 | |
| 644 | static void AnimateOilWell(TileIndex tile, IndustryGfx gfx) |
| 645 | { |
| 646 | bool b = Chance16(1, 7); |
| 647 | uint8_t m = GetAnimationFrame(tile) + 1; |
| 648 | if (m == 4 && (m = 0, ++gfx) == GFX_OILWELL_ANIMATED_3 + 1 && (gfx = GFX_OILWELL_ANIMATED_1, b)) { |
| 649 | SetIndustryGfx(tile, GFX_OILWELL_NOT_ANIMATED); |
| 650 | SetIndustryConstructionStage(tile, 3); |
| 651 | DeleteAnimatedTile(tile); |
| 652 | } else { |
| 653 | SetAnimationFrame(tile, m); |
| 654 | SetIndustryGfx(tile, gfx); |
| 655 | } |
| 656 | MarkTileDirtyByTile(tile); |
| 657 | } |
| 658 | |
| 659 | static void AnimateMineTower(TileIndex tile) |
| 660 | { |
no test coverage detected