This commit is contained in:
parent
95a497d5d3
commit
25861a7148
@ -57,6 +57,7 @@
|
||||
---------------------------------------------------------------------- */
|
||||
void CHelmetPickup::collect(class CPlayer *_player)
|
||||
{
|
||||
_player->giveDivingHelmet();
|
||||
CBasePickup::collect(_player);
|
||||
}
|
||||
|
||||
|
@ -240,6 +240,7 @@ m_animFrame=0;
|
||||
m_glassesFlag=0;
|
||||
m_squeakyBootsTimer=0;
|
||||
m_invinvibilityRingTimer=0;
|
||||
m_divingHelmet=false;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
|
@ -244,10 +244,12 @@ public:
|
||||
void giveGlasses() {m_glassesFlag=true;}
|
||||
void giveSqueakyBoots() {m_squeakyBootsTimer=SQUEAKY_BOOTS_TIME;}
|
||||
void giveInvinvibilityRing() {m_invinvibilityRingTimer=INVINCIBILITY_RING_TIME;}
|
||||
void giveDivingHelmet() {m_divingHelmet=true;}
|
||||
private:
|
||||
int m_glassesFlag;
|
||||
int m_squeakyBootsTimer;
|
||||
int m_invinvibilityRingTimer;
|
||||
int m_divingHelmet;
|
||||
|
||||
// Platforms
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user