I don't know if this is actually better or not but it feels like it should be

git-svn-id: https://svn.eduke32.com/eduke32@6819 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-04-06 01:43:17 +00:00
parent 260fb278d9
commit 7d0249b9ee

View file

@ -1028,25 +1028,22 @@ perr:
void __fastcall Gv_GetManyVars(int const numVars, int32_t * const outBuf)
{
for (bssize_t j = 0; j < numVars; ++j)
for (native_t j = 0; j < numVars; ++j)
{
int gameVar = *insptr++;
int const invertResult = !!(gameVar & (MAXGAMEVARS << 1));
if (gameVar == MAXGAMEVARS)
{
outBuf[j] = *insptr++;
continue;
}
if (gameVar == g_thisActorVarID)
else if (gameVar == g_thisActorVarID)
{
outBuf[j] = vm.spriteNum;
continue;
}
int const invertResult = !!(gameVar & (MAXGAMEVARS << 1));
if (gameVar >= g_gameVarCount && !invertResult)
else if (gameVar >= g_gameVarCount && !invertResult)
{
outBuf[j] = Gv_GetSpecialVarX(gameVar);
continue;