From 07c7363d0fb448ee45b93f31bbb51e854e4ea32a Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 3 Mar 2013 16:06:18 +0000 Subject: [PATCH] CON: Fix accessing gamearrays on 64-bit archs. From the PM conversation "gamearrays in 64-bit". A test case is the breaking glass at the beginning of the DukePlus map. git-svn-id: https://svn.eduke32.com/eduke32@3536 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamevars.c | 1 + 1 file changed, 1 insertion(+) diff --git a/polymer/eduke32/source/gamevars.c b/polymer/eduke32/source/gamevars.c index 9726fdcac..72cae4768 100644 --- a/polymer/eduke32/source/gamevars.c +++ b/polymer/eduke32/source/gamevars.c @@ -794,6 +794,7 @@ int32_t __fastcall Gv_GetVarX(register int32_t id) switch (aGameArrays[id].dwFlags & GAMEARRAY_TYPE_MASK) { case 0: + return ((aGameArrays[id].plValues)[index] ^ -negateResult) + negateResult; case GAMEARRAY_OFINT: return (((int32_t *)aGameArrays[id].plValues)[index] ^ -negateResult) + negateResult; case GAMEARRAY_OFSHORT: