MCPcopy Create free account
hub / github.com/ZDoom/Raze / parseSetupTileRange

Function parseSetupTileRange

source/core/defparser.cpp:781–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779//===========================================================================
780
781static void parseSetupTileRange(FScanner& sc, FScriptPosition& pos)
782{
783 int tilestart, tileend;
784 if (!sc.GetNumber(tilestart, true)) return;
785 if (!sc.GetNumber(tileend, true)) return;
786 if (!ValidateTileRange("setuptilerange", tilestart, tileend, pos)) return;
787
788 TileOffs hiofs;
789 if (!sc.GetNumber(hiofs.xsize, true)) return;
790 if (!sc.GetNumber(hiofs.ysize, true)) return;
791 if (!sc.GetNumber(hiofs.xoffs, true)) return;
792 if (!sc.GetNumber(hiofs.yoffs, true)) return;
793
794 for (int i = tilestart; i <= tileend; i++)
795 tbuild->tile[i].extinfo.hiofs = hiofs;
796}
797
798//===========================================================================
799//

Callers

nothing calls this directly

Calls 2

ValidateTileRangeFunction · 0.85
GetNumberMethod · 0.45

Tested by

no test coverage detected