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

Function setAnim

source/core/defparser.cpp:259–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257};
258
259static void setAnim(int tile, int type, int speed, int frames)
260{
261 auto& anm = tbuild->tile[tile].extinfo.picanm;
262 anm.sf &= ~(PICANM_ANIMTYPE_MASK | PICANM_ANIMSPEED_MASK);
263 anm.sf |= clamp(speed, 0, 15) | (type << PICANM_ANIMTYPE_SHIFT);
264 anm.num = frames;
265}
266
267static void processSetAnim(const char* cmd, FScriptPosition& pos, SetAnim& imp)
268{

Callers 1

processSetAnimFunction · 0.85

Calls 1

clampFunction · 0.85

Tested by

no test coverage detected