- Fixed a few Strife ammo amount values.

- Fixed the ClearLocks function so it doesn't crash when called before the
  ActorInfos have been created.

SVN r96 (trunk)
This commit is contained in:
Christoph Oelckers 2006-05-10 00:25:53 +00:00
parent de54d7a667
commit 632e03fa7e
3 changed files with 9 additions and 5 deletions

View file

@ -12,6 +12,9 @@ May 9, 2006
- Fixed: The secnodes were never freed. - Fixed: The secnodes were never freed.
May 9, 2006 (Changes by Graf Zahl) May 9, 2006 (Changes by Graf Zahl)
- Fixed a few Strife ammo amount values.
- Fixed the ClearLocks function so it doesn't crash when called before the
ActorInfos have been created.
- Fixed: The FSpecialFont constructor created the name string twice. - Fixed: The FSpecialFont constructor created the name string twice.
- Fixed: The animated door parser was still leaking memory when it encountered - Fixed: The animated door parser was still leaking memory when it encountered
an invalid animation due to missing textures. an invalid animation due to missing textures.

View file

@ -322,7 +322,8 @@ static void ClearLocks()
{ {
if (TypeInfo::m_Types[i]->IsDescendantOf(RUNTIME_CLASS(AKey))) if (TypeInfo::m_Types[i]->IsDescendantOf(RUNTIME_CLASS(AKey)))
{ {
static_cast<AKey*>(GetDefaultByType(TypeInfo::m_Types[i]))->KeyNumber=0; if (TypeInfo::m_Types[i]->ActorInfo != NULL)
static_cast<AKey*>(GetDefaultByType(TypeInfo::m_Types[i]))->KeyNumber=0;
} }
} }
for(i=0;i<256;i++) for(i=0;i<256;i++)

View file

@ -27,7 +27,7 @@ IMPLEMENT_ACTOR (AHEGrenadeRounds, Strife, 152, 0)
PROP_StrifeType (177) PROP_StrifeType (177)
PROP_StrifeTeaserType (170) PROP_StrifeTeaserType (170)
PROP_StrifeTeaserType2 (174) PROP_StrifeTeaserType2 (174)
PROP_Inventory_Amount (12) PROP_Inventory_Amount (6)
PROP_Inventory_MaxAmount (30) PROP_Inventory_MaxAmount (30)
PROP_Ammo_BackpackAmount (6) PROP_Ammo_BackpackAmount (6)
PROP_Ammo_BackpackMaxAmount (60) PROP_Ammo_BackpackMaxAmount (60)
@ -54,9 +54,9 @@ IMPLEMENT_ACTOR (APhosphorusGrenadeRounds, Strife, 153, 0)
PROP_StrifeType (178) PROP_StrifeType (178)
PROP_StrifeTeaserType (171) PROP_StrifeTeaserType (171)
PROP_StrifeTeaserType2 (175) PROP_StrifeTeaserType2 (175)
PROP_Inventory_Amount (8) PROP_Inventory_Amount (4)
PROP_Inventory_MaxAmount (16) PROP_Inventory_MaxAmount (16)
PROP_Ammo_BackpackAmount (2) PROP_Ammo_BackpackAmount (4)
PROP_Ammo_BackpackMaxAmount (32) PROP_Ammo_BackpackMaxAmount (32)
PROP_Inventory_Icon ("I_GRN2") PROP_Inventory_Icon ("I_GRN2")
PROP_Tag ("Phoshorus-Grenade_Rounds") // "Fire-Grenade_Rounds" in the Teaser PROP_Tag ("Phoshorus-Grenade_Rounds") // "Fire-Grenade_Rounds" in the Teaser
@ -85,7 +85,7 @@ IMPLEMENT_ACTOR (AClipOfBullets, Strife, 2007, 11)
PROP_StrifeTeaserType2 (177) PROP_StrifeTeaserType2 (177)
PROP_Inventory_Amount (10) PROP_Inventory_Amount (10)
PROP_Inventory_MaxAmount (250) PROP_Inventory_MaxAmount (250)
PROP_Ammo_BackpackAmount (20) PROP_Ammo_BackpackAmount (10)
PROP_Ammo_BackpackMaxAmount (500) PROP_Ammo_BackpackMaxAmount (500)
PROP_Inventory_Icon ("I_BLIT") PROP_Inventory_Icon ("I_BLIT")
PROP_Tag ("clip_of_bullets") // "bullets" in the Teaser PROP_Tag ("clip_of_bullets") // "bullets" in the Teaser