git-svn-id: https://svn.eduke32.com/eduke32@759 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2008-06-04 07:38:11 +00:00
parent 34b7ac0714
commit 65c2fd394a
3 changed files with 10 additions and 5 deletions

View file

@ -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<MAXSPRITES;j++)
for (j=0;j<numsprites;j++)
{
if (sprite[j].statnum != MAXSTATUS)
{

View file

@ -2624,6 +2624,9 @@ static void Keys3d(void)
{
if (wall[i].picnum == temppicnum) count++;
if (wall[i].overpicnum == temppicnum) count++;
}
for (i=0;i<numsectors;i++)
{
if (sector[i].ceilingpicnum == temppicnum) count++;
if (sector[i].floorpicnum == temppicnum) count++;
}

View file

@ -6678,14 +6678,15 @@ static int parse(void)
// syntax [gs]etactorvar[<var>].<varx> <VAR>
// gets the value of the per-actor variable varx into VAR
// <var> <varx> <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;
}