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

Function parseImportTile

source/core/defparser.cpp:606–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604//===========================================================================
605
606static void parseImportTile(FScanner& sc, FScriptPosition& pos)
607{
608 int tile;
609
610 if (!sc.GetNumber(tile, true)) return;
611 if (!sc.GetString()) return;
612 if (!ValidateTilenum("importtile", tile, pos)) return;
613
614 int texstatus = tileImportFromTexture(sc, sc.String, tile, 255, 0);
615 if (texstatus >= 0) tbuild->tile[tile].extinfo.picanm = {};
616}
617
618//===========================================================================
619//

Callers

nothing calls this directly

Calls 4

ValidateTilenumFunction · 0.85
tileImportFromTextureFunction · 0.85
GetNumberMethod · 0.45
GetStringMethod · 0.45

Tested by

no test coverage detected