- Added MAPINFO flag "SpawnWithWeaponRaised".

SVN r4013 (trunk)
This commit is contained in:
Randy Heit 2013-01-03 02:08:08 +00:00
commit 787c338871
8 changed files with 19 additions and 17 deletions

View file

@ -989,7 +989,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AInventory, A_Light)
//
//------------------------------------------------------------------------
void P_SetupPsprites(player_t *player)
void P_SetupPsprites(player_t *player, bool startweaponup)
{
int i;
@ -999,7 +999,7 @@ void P_SetupPsprites(player_t *player)
player->psprites[i].state = NULL;
}
// Spawn the ready weapon
player->PendingWeapon = player->ReadyWeapon;
player->PendingWeapon = !startweaponup ? player->ReadyWeapon : WP_NOCHANGE;
P_BringUpWeapon (player);
}