- Fixed: After loading a savegame or unmorphing, a player's weapon slots

were empty.


SVN r1477 (trunk)
This commit is contained in:
Randy Heit 2009-03-13 03:18:06 +00:00
commit 7dd75670f4
6 changed files with 38 additions and 8 deletions

View file

@ -499,7 +499,21 @@ void APlayerPawn::Tick()
void APlayerPawn::PostBeginPlay()
{
// If we're not a voodoo doll, set up our weapons.
SetupWeaponSlots();
}
//===========================================================================
//
// APlayerPawn :: SetupWeaponSlots
//
// Sets up the default weapon slots for this player. If this is also the
// local player, determines local modifications and sends those across the
// network. Ignores voodoo dolls.
//
//===========================================================================
void APlayerPawn::SetupWeaponSlots()
{
if (player != NULL && player->mo == this)
{
player->weapons.StandardSetup(GetClass());