- added Gez's infinite ammo powerup and random spawner fix patches.
- reduced size of Hexen's flames to fix bug in Deathkings MAP01. - added checks for sidedef scaling values SVN r1648 (trunk)
This commit is contained in:
parent
93742aca31
commit
d04ffd57f8
9 changed files with 81 additions and 40 deletions
|
|
@ -404,7 +404,7 @@ bool AWeapon::CheckAmmo (int fireMode, bool autoSwitch, bool requireAmmo)
|
|||
int count1, count2;
|
||||
int enough, enoughmask;
|
||||
|
||||
if (dmflags & DF_INFINITE_AMMO)
|
||||
if ((dmflags & DF_INFINITE_AMMO) || (Owner->player->cheats & CF_INFINITEAMMO))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
@ -462,7 +462,7 @@ bool AWeapon::CheckAmmo (int fireMode, bool autoSwitch, bool requireAmmo)
|
|||
|
||||
bool AWeapon::DepleteAmmo (bool altFire, bool checkEnough)
|
||||
{
|
||||
if (!(dmflags & DF_INFINITE_AMMO))
|
||||
if (!((dmflags & DF_INFINITE_AMMO) || (Owner->player->cheats & CF_INFINITEAMMO)))
|
||||
{
|
||||
if (checkEnough && !CheckAmmo (altFire ? AltFire : PrimaryFire, false))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue