- moved around some pieces of code to make sharing with Raze easier.
This commit is contained in:
parent
f8ac9a2662
commit
cf51508ce6
21 changed files with 96 additions and 74 deletions
|
|
@ -2523,7 +2523,7 @@ void FParser::SF_PlayerWeapon()
|
|||
{
|
||||
wp->Destroy();
|
||||
// If the weapon is active pick a replacement. Legacy didn't do this!
|
||||
if (Level->Players[playernum]->PendingWeapon==wp) Level->Players[playernum]->PendingWeapon=WP_NOCHANGE;
|
||||
if (Level->Players[playernum]->PendingWeapon==wp) Level->Players[playernum]->PendingWeapon=(AActor*)WP_NOCHANGE;
|
||||
if (Level->Players[playernum]->ReadyWeapon==wp)
|
||||
{
|
||||
Level->Players[playernum]->ReadyWeapon=nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue