From 257e271162a796903a9df693ae90e675d70dbea7 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 28 Mar 2015 09:48:37 +0000 Subject: [PATCH] C-CON: Really fix get/setprojectile. git-svn-id: https://svn.eduke32.com/eduke32@5105 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gameexec.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index b96a3af8b..7266d2966 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -4316,25 +4316,22 @@ finish_qsprintf: case CON_GETPROJECTILE: insptr++; { - tw = *insptr++; + tw = Gv_GetVarX(*insptr++); int const lLabelID = *insptr++, lVar2 = *insptr++; - register int32_t const iTile = Gv_GetVarX(tw); - - Gv_SetVarX(lVar2, VM_GetProjectile(iTile, lLabelID)); + Gv_SetVarX(lVar2, VM_GetProjectile(tw, lLabelID)); continue; } case CON_SETPROJECTILE: insptr++; { - tw = *insptr++; + tw=Gv_GetVarX(*insptr++); int const lLabelID = *insptr++, lVar2 = *insptr++; - register int32_t const iTile = Gv_GetVarX(tw); register int32_t const iSet = Gv_GetVarX(lVar2); - VM_SetProjectile(iTile, lLabelID, iSet); + VM_SetProjectile(tw, lLabelID, iSet); continue; }