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

Function parseAlphahackRange

source/core/defparser.cpp:835–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833//===========================================================================
834
835static void parseAlphahackRange(FScanner& sc, FScriptPosition& pos)
836{
837 int tilestart, tileend;
838
839 if (!sc.GetNumber(tilestart, true)) return;
840 if (!sc.GetNumber(tileend, true)) return;
841 if (!sc.GetFloat(true)) return;
842 if (!ValidateTileRange("alphahackrange", tilestart, tileend, pos)) return;
843
844 for (int i = tilestart; i <= tileend; i++)
845 tbuild->tile[i].alphathreshold = (float)sc.Float;
846}
847
848//===========================================================================
849//

Callers

nothing calls this directly

Calls 3

ValidateTileRangeFunction · 0.85
GetNumberMethod · 0.45
GetFloatMethod · 0.45

Tested by

no test coverage detected