Skip to content

Commit

Permalink
- Duke: Add CON support for Duke Nukem 3D 1.1 Shareware.
Browse files Browse the repository at this point in the history
Based on EDuke32's parsing of the same commands.
  • Loading branch information
mjr4077au committed May 29, 2022
1 parent 889baef commit 79465ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/games/duke/src/condef.h
Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions source/games/duke/src/gamedef.cpp
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -3067,6 +3069,11 @@ int ConCompiler::parsecommand()
return 0;


case concmd_shadeto:
popscriptvalue();
transnum(LABEL_DEFINE);
popscriptvalue();
break;
}
return 0;
}
Expand Down

0 comments on commit 79465ff

Please sign in to comment.