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

Function aUserFlagSet

scripts/DallasFuncs.cpp:1603–1611  ·  view source on GitHub ↗

$$ACTION User Vars Set user flag [e:UserFlag] to [b:True/False] aUserFlagSet Set user flag Set a flag to true or flase Parameters: UserFlag: The variable to set True/False: What to set the flag to $$END */

Source from the content-addressed store, hash-verified

1601$$END
1602*/
1603void aUserFlagSet(int flagnum, bool state) {
1604 if ((flagnum >= 0) && (flagnum < 32)) {
1605 int bit = 1 << flagnum;
1606 if (state)
1607 User_flags |= bit;
1608 else
1609 User_flags &= ~bit;
1610 }
1611}
1612
1613/*
1614$$ACTION

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected