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

Function IsMissionMaskOK

Descent3/Briefing.cpp:266–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264static void PBAddVoice(char *filename, int flags, char *description);
265
266bool IsMissionMaskOK(uint32_t set, uint32_t unset) {
267 uint32_t Gamemissionmask = Current_mission.game_state_flags;
268
269 uint32_t fGamemissionmask;
270 fGamemissionmask = Gamemissionmask ^ 0xFFFFFFFF;
271
272 if (!(((set & Gamemissionmask) == set) && ((unset & fGamemissionmask) == unset))) {
273 return false;
274 }
275
276 return true;
277}
278
279void ReplaceHotTag(char *string, int tag) {
280 if (tag < 0 || tag >= NumHotTags) {

Callers 8

PBAddTextEffectFunction · 0.85
PBAddBmpEffectFunction · 0.85
PBAddMovieEffectFunction · 0.85
PBAddBkgEffectFunction · 0.85
PBAddPolyEffectFunction · 0.85
PBAddSoundEffectFunction · 0.85
PBAddButtonEffectFunction · 0.85
PBStartScreenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected