Change Trigger() methods to use triggermode_t
This commit is contained in:
parent
80a8fedbc2
commit
df673ced42
3 changed files with 6 additions and 6 deletions
|
@ -50,7 +50,7 @@ entity_spritegod:NSPointTrigger
|
|||
virtual void(string, string) SpawnKey;
|
||||
virtual void(void) Respawn;
|
||||
virtual void(void) EmitSprite;
|
||||
virtual void(entity, int) Trigger;
|
||||
virtual void(entity, triggermode_t) Trigger;
|
||||
virtual void(void) StartTimer;
|
||||
virtual void(void) Spawned;
|
||||
};
|
||||
|
@ -62,7 +62,7 @@ entity_spritegod::StartTimer(void)
|
|||
}
|
||||
|
||||
void
|
||||
entity_spritegod::Trigger(entity eAct, int iState)
|
||||
entity_spritegod::Trigger(entity eAct, triggermode_t iState)
|
||||
{
|
||||
switch (iState) {
|
||||
case TRIG_OFF:
|
||||
|
|
|
@ -38,11 +38,11 @@ player_giveitems:NSPointTrigger
|
|||
{
|
||||
void(void) player_giveitems;
|
||||
|
||||
virtual void(entity, int) Trigger;
|
||||
virtual void(entity, triggermode_t) Trigger;
|
||||
};
|
||||
|
||||
void
|
||||
player_giveitems::Trigger(entity eAct, int iState)
|
||||
player_giveitems::Trigger(entity eAct, triggermode_t iState)
|
||||
{
|
||||
player pl = (player)eAct;
|
||||
|
||||
|
|
|
@ -55,11 +55,11 @@ sphere_explosion:NSPointTrigger
|
|||
|
||||
virtual void(void) Respawn;
|
||||
virtual void(string, string) SpawnKey;
|
||||
virtual void(entity, int) Trigger;
|
||||
virtual void(entity, triggermode_t) Trigger;
|
||||
};
|
||||
|
||||
void
|
||||
sphere_explosion::Trigger(entity eAct, int iState)
|
||||
sphere_explosion::Trigger(entity eAct, triggermode_t iState)
|
||||
{
|
||||
FX_Explosion(origin);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue