diff --git a/pcode.c b/pcode.c index 9e97a5f..b94154f 100644 --- a/pcode.c +++ b/pcode.c @@ -398,6 +398,7 @@ static char *PCDNames[PCODE_COMMAND_COUNT] = "PCD_CHECKACTORINVENTORY", "PCD_THINGCOUNTNAME", "PCD_SPAWNSPOTFACING", + "PCD_PLAYERCLASS", }; diff --git a/pcode.h b/pcode.h index 80571fd..f7473cd 100644 --- a/pcode.h +++ b/pcode.h @@ -348,6 +348,7 @@ typedef enum PCD_CHECKACTORINVENTORY, PCD_THINGCOUNTNAME, PCD_SPAWNSPOTFACING, + PCD_PLAYERCLASS, PCODE_COMMAND_COUNT } pcd_t; diff --git a/symbol.c b/symbol.c index 9a1e139..c1240c8 100644 --- a/symbol.c +++ b/symbol.c @@ -170,6 +170,7 @@ static internFuncDef_t InternalFunctions[] = { "setactorangle", PCD_NOP, PCD_SETACTORANGLE, 2, 0, 0, NO, NO }, { "spawnprojectile", PCD_NOP, PCD_SPAWNPROJECTILE, 7, 0, 0, NO, NO }, { "getsectorlightlevel", PCD_NOP, PCD_GETSECTORLIGHTLEVEL, 1, 0, 0, YES, NO }, + { "playerclass", PCD_NOP, PCD_PLAYERCLASS, 1, 0, 0, YES, NO }, { NULL, PCD_NOP, PCD_NOP, 0, 0, 0, NO, NO } };