mirror of
https://github.com/ZDoom/acc.git
synced 2024-11-26 22:01:00 +00:00
- Added sqrt, fixedsqrt, and vectorlength to ACC.
SVN r3884 (trunk)
This commit is contained in:
parent
9af2df3096
commit
7aa5c4d120
3 changed files with 9 additions and 0 deletions
3
pcode.c
3
pcode.c
|
@ -476,6 +476,9 @@ static char *PCDNames[PCODE_COMMAND_COUNT] =
|
||||||
"PCD_CALLSTACK", // from Eternity
|
"PCD_CALLSTACK", // from Eternity
|
||||||
"PCD_SCRIPTWAITNAMED",
|
"PCD_SCRIPTWAITNAMED",
|
||||||
"PCD_TRANSLATIONRANGE3",
|
"PCD_TRANSLATIONRANGE3",
|
||||||
|
"PCD_SQRT",
|
||||||
|
"PCD_FIXEDSQRT",
|
||||||
|
"PCD_VECTORLENGTH",
|
||||||
};
|
};
|
||||||
|
|
||||||
// CODE --------------------------------------------------------------------
|
// CODE --------------------------------------------------------------------
|
||||||
|
|
3
pcode.h
3
pcode.h
|
@ -425,6 +425,9 @@ typedef enum
|
||||||
PCD_CALLSTACK, // from Eternity
|
PCD_CALLSTACK, // from Eternity
|
||||||
PCD_SCRIPTWAITNAMED,
|
PCD_SCRIPTWAITNAMED,
|
||||||
PCD_TRANSLATIONRANGE3,
|
PCD_TRANSLATIONRANGE3,
|
||||||
|
PCD_SQRT,
|
||||||
|
PCD_FIXEDSQRT,
|
||||||
|
PCD_VECTORLENGTH,
|
||||||
|
|
||||||
PCODE_COMMAND_COUNT
|
PCODE_COMMAND_COUNT
|
||||||
} pcd_t;
|
} pcd_t;
|
||||||
|
|
3
symbol.c
3
symbol.c
|
@ -143,6 +143,9 @@ static internFuncDef_t InternalFunctions[] =
|
||||||
{ "sin", PCD_NOP, PCD_SIN, 1, 0, 0, YES, NO },
|
{ "sin", PCD_NOP, PCD_SIN, 1, 0, 0, YES, NO },
|
||||||
{ "cos", PCD_NOP, PCD_COS, 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 },
|
{ "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 },
|
{ "checkweapon", PCD_NOP, PCD_CHECKWEAPON, 1, 0, 0, YES, NO },
|
||||||
{ "setweapon", PCD_NOP, PCD_SETWEAPON, 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 },
|
{ "setmarineweapon", PCD_NOP, PCD_SETMARINEWEAPON, 2, 0, 0, NO, NO },
|
||||||
|
|
Loading…
Reference in a new issue