Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 862 → Rev 861

/polymer/eduke32/source/premap.c
1236,13 → 1236,6
 
ResetSystemDefaults();
 
for (i=0;i<(MAXVOLUMES*MAXLEVELS);i++)
if (map[i].savedstate)
{
Bfree(map[i].savedstate);
map[i].savedstate = NULL;
}
 
if (ud.m_coop != 1)
{
for (i=0;i<MAX_WEAPONS;i++)
1861,25 → 1854,3
initprintf("E%dL%d: %s\n",ud.volume_number+1,ud.level_number+1,map[(ud.volume_number*MAXLEVELS)+ud.level_number].name);
return 0;
}
 
void FreeMapState(int mapnum)
{
int j;
 
for (j=0;j<iGameVarCount;j++)
{
if (aGameVars[j].dwFlags & GAMEVAR_FLAG_NORESET) continue;
if (aGameVars[j].dwFlags & GAMEVAR_FLAG_PERPLAYER)
{
if (map[mapnum].savedstate->vars[j])
Bfree(map[mapnum].savedstate->vars[j]);
}
else if (aGameVars[j].dwFlags & GAMEVAR_FLAG_PERACTOR)
{
if (map[mapnum].savedstate->vars[j])
Bfree(map[mapnum].savedstate->vars[j]);
}
}
Bfree(map[mapnum].savedstate);
map[mapnum].savedstate = NULL;
}