MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / qUserFlag

Function qUserFlag

scripts/DallasFuncs.cpp:5588–5593  ·  view source on GitHub ↗

$$QUERY User Vars b:User Flag [e:UserFlag] qUserFlag User flag Returns the state of the specified user flag Parameters: UserFlag: The flag whose state to return $$END */

Source from the content-addressed store, hash-verified

5586$$END
5587*/
5588bool qUserFlag(int flagnum) {
5589 if ((flagnum >= 0) && (flagnum < 32))
5590 return ((User_flags & (1 << flagnum)) != 0);
5591 else
5592 return 0;
5593}
5594
5595/*
5596$$QUERY

Callers 15

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
aMatCenPuzzleResetFunction · 0.85
aMatCenPuzzleSwitchAFunction · 0.85
aMatCenPuzzleSwitchBFunction · 0.85
aMatCenPuzzleSwitchCFunction · 0.85
aMatCenPuzzleSwitchDFunction · 0.85
aMatCenPuzzleSwitchEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected