Browse Source

Use int instead of float in pitdrone's BodyChange (#147)

opforfixed
Roman Chistokhodov 4 years ago committed by GitHub
parent
commit
562e4bdb64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dlls/gearbox/pitdrone.cpp

4
dlls/gearbox/pitdrone.cpp

@ -223,7 +223,7 @@ public: @@ -223,7 +223,7 @@ public:
void PainSound(void);
void AlertSound(void);
void DeathSound(void);
void BodyChange(float spikes);
void BodyChange(int spikes);
int TakeDamage(entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType);
int IgnoreConditions(void);
Schedule_t* GetSchedule(void);
@ -595,7 +595,7 @@ int CPitdrone::Classify(void) @@ -595,7 +595,7 @@ int CPitdrone::Classify(void)
return CLASS_RACEX_PREDATOR;
}
void CPitdrone::BodyChange(float horns)
void CPitdrone::BodyChange(int horns)
{
if (horns <= 0)
SetBodygroup(HORNGROUP, PITDRONE_HORNS0);

Loading…
Cancel
Save