Small fixup.
This commit is contained in:
parent
d7c7a7fb86
commit
b37c38ce9c
1 changed files with 2 additions and 1 deletions
|
|
@ -139,11 +139,12 @@ Class UTPlayer : DoomPlayer
|
||||||
{
|
{
|
||||||
// Doom Tournament just gives the player a shield belt and maximum bonuses
|
// Doom Tournament just gives the player a shield belt and maximum bonuses
|
||||||
let belt = Inventory(Spawn("UTShieldBelt"));
|
let belt = Inventory(Spawn("UTShieldBelt"));
|
||||||
|
belt.ClearCounters();
|
||||||
if ( !belt.CallTryPickup(self) ) belt.Destroy();
|
if ( !belt.CallTryPickup(self) ) belt.Destroy();
|
||||||
let bonus = Inventory(Spawn("UTArmorBonus"));
|
let bonus = Inventory(Spawn("UTArmorBonus"));
|
||||||
|
bonus.ClearCounters();
|
||||||
bonus.Amount = bonus.MaxAmount;
|
bonus.Amount = bonus.MaxAmount;
|
||||||
if ( !bonus.CallTryPickup(self) ) bonus.Destroy();
|
if ( !bonus.CallTryPickup(self) ) bonus.Destroy();
|
||||||
level.total_items -= 2; // spawning them in raises item count
|
|
||||||
if ( !giveall ) return;
|
if ( !giveall ) return;
|
||||||
}
|
}
|
||||||
if ( giveall || (name ~== "keys") )
|
if ( giveall || (name ~== "keys") )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue