diff --git a/pcode.c b/pcode.c index 9d5fd41..c13bf36 100644 --- a/pcode.c +++ b/pcode.c @@ -476,6 +476,9 @@ static char *PCDNames[PCODE_COMMAND_COUNT] = "PCD_CALLSTACK", // from Eternity "PCD_SCRIPTWAITNAMED", "PCD_TRANSLATIONRANGE3", + "PCD_SQRT", + "PCD_FIXEDSQRT", + "PCD_VECTORLENGTH", }; // CODE -------------------------------------------------------------------- diff --git a/pcode.h b/pcode.h index fdad84e..fa09f64 100644 --- a/pcode.h +++ b/pcode.h @@ -425,6 +425,9 @@ typedef enum PCD_CALLSTACK, // from Eternity PCD_SCRIPTWAITNAMED, PCD_TRANSLATIONRANGE3, + PCD_SQRT, + PCD_FIXEDSQRT, + PCD_VECTORLENGTH, PCODE_COMMAND_COUNT } pcd_t; diff --git a/symbol.c b/symbol.c index 3c6a6d0..1d92dde 100644 --- a/symbol.c +++ b/symbol.c @@ -143,6 +143,9 @@ static internFuncDef_t InternalFunctions[] = { "sin", PCD_NOP, PCD_SIN, 1, 0, 0, YES, NO }, { "cos", PCD_NOP, PCD_COS, 1, 0, 0, YES, NO }, { "vectorangle", PCD_NOP, PCD_VECTORANGLE, 2, 0, 0, YES, NO }, + { "vectorlength", PCD_NOP, PCD_VECTORLENGTH, 2, 0, 0, YES, NO }, + { "sqrt", PCD_NOP, PCD_SQRT, 1, 0, 0, YES, NO }, + { "fixedsqrt", PCD_NOP, PCD_SQRT, 1, 0, 0, YES, NO }, { "checkweapon", PCD_NOP, PCD_CHECKWEAPON, 1, 0, 0, YES, NO }, { "setweapon", PCD_NOP, PCD_SETWEAPON, 1, 0, 0, YES, NO }, { "setmarineweapon", PCD_NOP, PCD_SETMARINEWEAPON, 2, 0, 0, NO, NO },