- changed some data init code to delete the data it wants to initialize first.
- The 'savebuffer' variable still existed? - Changed AInventory::Destroy to NULL SendItemUse and SendItemDrop if they point to the destroyed object. Although unlikely it can't be ruled out completely that this can happen with delayed CCMDs. - fixed: Starting a new game did not clear the hub statistics array. SVN r3034 (trunk)
This commit is contained in:
parent
99b5fe29f7
commit
c6525a2271
10 changed files with 31 additions and 4 deletions
|
|
@ -1803,7 +1803,11 @@ void DeinitIntermissions();
|
|||
|
||||
static void ClearMapinfo()
|
||||
{
|
||||
wadclusterinfos.Clear();
|
||||
wadlevelinfos.Clear();
|
||||
ClearEpisodes();
|
||||
AllSkills.Clear();
|
||||
DefaultSkill = -1;
|
||||
DeinitIntermissions();
|
||||
}
|
||||
|
||||
|
|
@ -1820,6 +1824,7 @@ void G_ParseMapInfo (const char *basemapinfo)
|
|||
int lump, lastlump = 0;
|
||||
level_info_t gamedefaults;
|
||||
|
||||
ClearMapinfo();
|
||||
atterm(ClearMapinfo);
|
||||
|
||||
// Parse the default MAPINFO for the current game. This lump *MUST* come from zdoom.pk3.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue