From 7aa5c4d120319a513527ec0dcf357069bc85a493 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 11 Oct 2012 03:40:21 +0000 Subject: [PATCH] - Added sqrt, fixedsqrt, and vectorlength to ACC. SVN r3884 (trunk) --- pcode.c | 3 +++ pcode.h | 3 +++ symbol.c | 3 +++ 3 files changed, 9 insertions(+) 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 },