Fixed a bug with not giving the helmet when you've already got Kevlar.
This commit is contained in:
parent
d4d6e8a6da
commit
992251b030
1 changed files with 1 additions and 0 deletions
|
@ -104,6 +104,7 @@ void CSEv_PlayerBuyEquipment_f( float fID ) {
|
||||||
Money_AddMoney( self, -350 );
|
Money_AddMoney( self, -350 );
|
||||||
sound( self, CHAN_ITEM, "items/tr_kevlar.wav", 1, ATTN_IDLE );
|
sound( self, CHAN_ITEM, "items/tr_kevlar.wav", 1, ATTN_IDLE );
|
||||||
centerprint( self, "You already have some kevlar,\nand now you've bought a helmet!" );
|
centerprint( self, "You already have some kevlar,\nand now you've bought a helmet!" );
|
||||||
|
self.iEquipment = self.iEquipment | EQUIPMENT_HELMET;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( self.iEquipment & EQUIPMENT_HELMET ) {
|
if ( self.iEquipment & EQUIPMENT_HELMET ) {
|
||||||
|
|
Loading…
Reference in a new issue