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

Method parseifelse

source/games/duke/src/gameexec.cpp:1326–1346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1324//---------------------------------------------------------------------------
1325
1326void ParseState::parseifelse(int condition)
1327{
1328 if( condition )
1329 {
1330 // skip 'else' pointer.. and...
1331 insptr+=2;
1332 parse();
1333 }
1334 else
1335 {
1336 insptr = &ScriptCode[*(insptr+1)];
1337 if(*insptr == 10)
1338 {
1339 // else...
1340
1341 // skip 'else' and...
1342 insptr+=2;
1343 parse();
1344 }
1345 }
1346}
1347
1348//---------------------------------------------------------------------------
1349//

Callers

nothing calls this directly

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected