- reverted r2783 because it was causing problems.

SVN r2792 (trunk)
This commit is contained in:
Christoph Oelckers 2010-09-16 06:51:42 +00:00
parent c948fd08f2
commit 3662bf8a15
3 changed files with 2 additions and 14 deletions

View file

@ -1345,10 +1345,7 @@ void G_PlayerReborn (int player)
if (gamestate != GS_TITLELEVEL) if (gamestate != GS_TITLELEVEL)
{ {
actor->GiveDefaultInventory (); actor->GiveDefaultInventory ();
p->ReadyWeapon = p->PendingWeapon;
// [Spleen] ReadyWeapon will be set when P_MovePsprites calls P_BringUpWeapon
p->ReadyWeapon = NULL;
//p->ReadyWeapon = p->PendingWeapon;
} }
//Added by MC: Init bot structure. //Added by MC: Init bot structure.

View file

@ -794,15 +794,9 @@ void P_SetupPsprites(player_t *player)
{ {
player->psprites[i].state = NULL; player->psprites[i].state = NULL;
} }
// [Spleen] Let P_MovePsprites handle calling P_BringUpWeapon,
// instead of P_SetupPsprites, to avoid raising it twice in one tic.
/*
// Spawn the ready weapon // Spawn the ready weapon
player->PendingWeapon = player->ReadyWeapon; player->PendingWeapon = player->ReadyWeapon;
P_BringUpWeapon (player); P_BringUpWeapon (player);
*/
} }
//------------------------------------------------------------------------ //------------------------------------------------------------------------

View file

@ -1103,10 +1103,7 @@ void APlayerPawn::GiveDefaultInventory ()
if (item != NULL && item->IsKindOf (RUNTIME_CLASS (AWeapon)) && if (item != NULL && item->IsKindOf (RUNTIME_CLASS (AWeapon)) &&
static_cast<AWeapon*>(item)->CheckAmmo(AWeapon::EitherFire, false)) static_cast<AWeapon*>(item)->CheckAmmo(AWeapon::EitherFire, false))
{ {
// [Spleen] ReadyWeapon will be set when P_MovePsprites calls P_BringUpWeapon player->ReadyWeapon = player->PendingWeapon = static_cast<AWeapon *> (item);
player->PendingWeapon = static_cast<AWeapon *> (item);
player->ReadyWeapon = NULL;
//player->ReadyWeapon = player->PendingWeapon = static_cast<AWeapon *> (item);
} }
} }
di = di->Next; di = di->Next;