| 641 | //=========================================================================== |
| 642 | |
| 643 | static void parseDummyTileRange(FScanner& sc, FScriptPosition& pos) |
| 644 | { |
| 645 | int tile1, tile2, xsiz, ysiz; |
| 646 | |
| 647 | if (!sc.GetNumber(tile1, true)) return; |
| 648 | if (!sc.GetNumber(tile2, true)) return; |
| 649 | if (!sc.GetNumber(xsiz, true)) return; |
| 650 | if (!sc.GetNumber(ysiz, true)) return; |
| 651 | if (!ValidateTileRange("dummytilerange", tile1, tile2, pos)) return; |
| 652 | if (xsiz < 0 || ysiz < 0) return; |
| 653 | |
| 654 | for (int i = tile1; i <= tile2; i++) |
| 655 | { |
| 656 | auto& tiled = tbuild->tile[i]; |
| 657 | tiled.tileimage = createDummyTile(xsiz, ysiz); |
| 658 | tiled.imported = nullptr; |
| 659 | } |
| 660 | } |
| 661 | |
| 662 | //=========================================================================== |
| 663 | // |
nothing calls this directly
no test coverage detected