From f64a397b341fd1355399192cf80cbf99a5041ffc Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 23 Dec 2015 04:06:24 +0000 Subject: [PATCH] Fix issue with sin/cos CON commands that prevented using the special builtin structure shortcut access vars for input. git-svn-id: https://svn.eduke32.com/eduke32@5490 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gameexec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index 2159c347d..4e58af7dc 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -4980,14 +4980,14 @@ finish_qsprintf: case CON_SIN: insptr++; - Gv_SetVarX(*insptr, sintable[Gv_GetVarX(*(insptr+1))&2047]); - insptr += 2; + tw = *insptr++; + Gv_SetVarX(tw, sintable[Gv_GetVarX(*insptr++)&2047]); continue; case CON_COS: insptr++; - Gv_SetVarX(*insptr, sintable[(Gv_GetVarX(*(insptr+1))+512)&2047]); - insptr += 2; + tw = *insptr++; + Gv_SetVarX(tw, sintable[(Gv_GetVarX(*insptr++)+512)&2047]); continue; case CON_ADDVARVAR: