mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
SW: Fix cheats only granting one Uzi instead of two
git-svn-id: https://svn.eduke32.com/eduke32@8343 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
769b359928
commit
68668058c9
1 changed files with 6 additions and 7 deletions
|
@ -167,6 +167,12 @@ void WeaponCheat(PLAYERp pp, const char *)
|
|||
p = &Player[pnum];
|
||||
u = User[p->PlayerSprite];
|
||||
|
||||
if (!TEST(p->Flags, PF_TWO_UZI))
|
||||
{
|
||||
SET(p->Flags, PF_TWO_UZI);
|
||||
SET(p->Flags, PF_PICKED_UP_AN_UZI);
|
||||
}
|
||||
|
||||
// ALL WEAPONS
|
||||
if (!SW_SHAREWARE)
|
||||
p->WpnFlags = 0xFFFFFFFF;
|
||||
|
@ -248,13 +254,6 @@ void ItemCheat(PLAYERp pp, const char *cheat_string)
|
|||
p = &Player[pnum];
|
||||
memset(p->HasKey, TRUE, sizeof(p->HasKey));
|
||||
|
||||
if (p->Wpn[WPN_UZI] && p->CurWpn == p->Wpn[WPN_UZI])
|
||||
{
|
||||
SET(p->Flags, PF_TWO_UZI);
|
||||
SET(p->Flags, PF_PICKED_UP_AN_UZI);
|
||||
InitWeaponUzi(p);
|
||||
}
|
||||
|
||||
p->WpnShotgunAuto = 50;
|
||||
p->WpnRocketHeat = 5;
|
||||
p->WpnRocketNuke = 1;
|
||||
|
|
Loading…
Reference in a new issue