- Restructured the action function interface to remove the dependence on
the global CallingState variable. SVN r1163 (trunk)
This commit is contained in:
parent
b1d36182c4
commit
1957659b1b
34 changed files with 405 additions and 422 deletions
|
|
@ -751,19 +751,7 @@ static bool FindMostRecentWeapon (player_t *player, int *slot, int *index)
|
|||
{
|
||||
if (player->PendingWeapon != WP_NOCHANGE)
|
||||
{
|
||||
if (player->psprites[ps_weapon].state != NULL &&
|
||||
player->psprites[ps_weapon].state->GetAction() == GET_ACTION(A_Raise))
|
||||
{
|
||||
if (LocalWeapons.LocateWeapon (player->PendingWeapon->GetClass(), slot, index))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LocalWeapons.LocateWeapon (player->PendingWeapon->GetClass(), slot, index);
|
||||
}
|
||||
return LocalWeapons.LocateWeapon (player->PendingWeapon->GetClass(), slot, index);
|
||||
}
|
||||
else if (player->ReadyWeapon != NULL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue