From 65c2fd394a716a0b5d335ee97e874d0b151d37b4 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 4 Jun 2008 07:38:11 +0000 Subject: [PATCH] fixes git-svn-id: https://svn.eduke32.com/eduke32@759 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/engine.c | 5 +++-- polymer/eduke32/source/astub.c | 3 +++ polymer/eduke32/source/gameexec.c | 7 ++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/polymer/build/src/engine.c b/polymer/build/src/engine.c index cbe4bfc0d..113e132f7 100644 --- a/polymer/build/src/engine.c +++ b/polymer/build/src/engine.c @@ -7649,7 +7649,8 @@ int saveboard(char *filename, int *daposx, int *daposy, int *daposz, Bwrite(fil,&tsect[0],sizeof(sectortype) * numsectors); Bfree(tsect); - ts = B_LITTLE16(numwalls); Bwrite(fil,&ts,2); + ts = B_LITTLE16(numwalls); + Bwrite(fil,&ts,2); twall = (walltype *)Bmalloc(sizeof(walltype) * numwalls); @@ -7687,7 +7688,7 @@ int saveboard(char *filename, int *daposx, int *daposy, int *daposz, spri=tspri; - for (j=0;j]. // gets the value of the per-actor variable varx into VAR // - int lSprite=GetGameVarID(*insptr++, g_i, g_p), lVar1=*insptr++, lVar2=*insptr++; + int lSprite=GetGameVarID(*insptr++, g_i, g_p), lVar1=*insptr++; + j=*insptr++; if (tw == CON_SETACTORVAR) { - SetGameVarID(lVar1, GetGameVarID(lVar2, g_i, g_p), lSprite, g_p); + SetGameVarID(lVar1, GetGameVarID(j, g_i, g_p), lSprite, g_p); break; } - SetGameVarID(lVar2, GetGameVarID(lVar1, lSprite, g_p), g_i, g_p); + SetGameVarID(j, GetGameVarID(lVar1, lSprite, g_p), g_i, g_p); break; }