- Fixed: The sidedef loader could allocate insufficient memory if a map

contained unused sidedefs.
- Fixed: Color control sequences were written to the log file. Since any
  entered console command contains such a sequence it was quite noticable.

SVN r208 (trunk)
This commit is contained in:
Christoph Oelckers 2006-06-21 15:40:42 +00:00
commit 14765bf64b
3 changed files with 27 additions and 4 deletions

View file

@ -2083,15 +2083,14 @@ void P_LoadSideDefs2 (MapData * map)
{
int i;
char name[9];
mapsidedef_t * msdf = new mapsidedef_t[numsides+1];
char * msdf = new char[map->Size(ML_SIDEDEFS)];
map->Read(ML_SIDEDEFS, msdf);
name[8] = 0;
for (i = 0; i < numsides; i++)
{
mapsidedef_t *msd = msdf + sidetemp[i].a.map;
mapsidedef_t *msd = ((mapsidedef_t*)msdf) + sidetemp[i].a.map;
side_t *sd = sides + i;
sector_t *sec;