- Fixed: The game would crash after informing you of a duplicate class registration

because PClass::CreateDerivedClass() did not initialize everything before calling
  InsertIntoHash().
- Fixed: Forcefully removing a weapon from a player's inventory would not reset
  the player's refire counter.
- Fixed: FreeKeySections() was called before M_SaveDefaults() during shutdown,
  so all custom keys would go to a "(null)" section instead of their intended
  section.


SVN r248 (trunk)
This commit is contained in:
Randy Heit 2006-07-13 02:08:39 +00:00
commit 56427d1b1c
5 changed files with 19 additions and 8 deletions

View file

@ -330,9 +330,10 @@ void APlayerPawn::RemoveInventory (AInventory *item)
}
if (item == player->ReadyWeapon)
{
// If the current weapon is removed, pick a new one.
// If the current weapon is removed, clear the refire counter and pick a new one.
pickWeap = true;
player->ReadyWeapon = NULL;
player->refire = 0;
}
}
Super::RemoveInventory (item);