Build fix

git-svn-id: https://svn.eduke32.com/eduke32@6387 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-07-27 10:08:52 +00:00
parent 494f09f80c
commit eeaf1f1d54
3 changed files with 8 additions and 3 deletions

View file

@ -2566,7 +2566,12 @@ nullquote:
int const out = *insptr++;
vec3_t in;
Gv_FillWithVars(in);
Gv_SetVarX(out, (tw == CON_MULSCALE ? mulscale : divscale)(in.x, in.y, in.z));
if (tw == CON_MULSCALE)
Gv_SetVarX(out, mulscale(in.x, in.y, in.z));
else
Gv_SetVarX(out, divscale(in.x, in.y, in.z));
continue;
}

View file

@ -378,7 +378,7 @@ void Gv_ResetVars(void) /* this is called during a new game and nowhere else */
}
}
int __fastcall Gv_GetArrayElementSize(int const arrayIdx)
unsigned __fastcall Gv_GetArrayElementSize(int const arrayIdx)
{
int typeSize = 0;

View file

@ -103,7 +103,7 @@ extern gamearray_t aGameArrays[MAXGAMEARRAYS];
extern int32_t g_gameVarCount;
extern int32_t g_gameArrayCount;
int __fastcall Gv_GetArrayElementSize(int const arrayIdx);
unsigned __fastcall Gv_GetArrayElementSize(int const arrayIdx);
int __fastcall Gv_GetArrayAllocSize(int const arrayIdx);
int __fastcall Gv_GetArrayValue(int const id, int index);
int __fastcall Gv_GetVar(int id, int spriteNum, int playerNum);