- Fixed: Skin definitions were never freed.

- Fixed: Names in terrain definitions were never freed. Replacing them with
  FNames would have been a good idea anyway.
- Fixed: The lock definitions were never freed.
- Fixed: FDoorAnimation was missing a destructor.
- Fixed: animation and switch definitions were never freed.
- Replaced all other places where FindType was used with FNames with 
  IFindType.

SVN r90 (trunk)
This commit is contained in:
Christoph Oelckers 2006-05-09 15:07:45 +00:00
commit 763efb3682
11 changed files with 108 additions and 32 deletions

View file

@ -142,7 +142,19 @@ struct FAnimDef
};
};
TArray<FAnimDef *> Anims;
class DeletingAnimArray : public TArray<FAnimDef *>
{
public:
~DeletingAnimArray()
{
for(unsigned i=0;i<Size();i++)
{
if ((*this)[i] != NULL) free((*this)[i]);
(*this)[i]=NULL;
}
}
};
static DeletingAnimArray Anims;
// killough 3/7/98: Initialize generalized scrolling
static void P_SpawnScrollers();