- Duke: Add CON support for Duke Nukem 3D 1.1 Shareware.

Based on EDuke32's parsing of the same commands.
This commit is contained in:
Mitchell Richters 2022-05-29 10:34:33 +10:00
parent 889baeff14
commit 79465ffc42
2 changed files with 10 additions and 0 deletions

View file

@ -241,6 +241,9 @@ cmd(gmaxammo) // 191
cmd(smaxammo) // 192
cmd(mapvoxel) // 193
cmd(startlevel) // 194
cmd(shadeto) // 195
cmd(ifplayersl) // 196
cmd(endoflevel) // 197
// RR Deer Huntin'. These are merely here for reference because the game is not supported.
// cmd(iffindnewspot)

View file

@ -1308,6 +1308,7 @@ int ConCompiler::parsecommand()
case concmd_spawn:
case concmd_count:
case concmd_endofgame:
case concmd_endoflevel:
case concmd_spritepal:
case concmd_cactor:
case concmd_quote:
@ -1585,6 +1586,7 @@ int ConCompiler::parsecommand()
case concmd_ifactorhealthl:
case concmd_ifsoundid:
case concmd_ifsounddist:
case concmd_ifplayersl:
transnum(tw == concmd_ifai? LABEL_AI : tw == concmd_ifaction? LABEL_ACTION : tw == concmd_ifmove? LABEL_MOVE : LABEL_DEFINE);
[[fallthrough]];
case concmd_ifonwater:
@ -3067,6 +3069,11 @@ int ConCompiler::parsecommand()
return 0;
case concmd_shadeto:
popscriptvalue();
transnum(LABEL_DEFINE);
popscriptvalue();
break;
}
return 0;
}