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

This commit is contained in:
Roman Chistokhodov 2021-01-02 12:24:56 +03:00 committed by GitHub
parent fdbce18498
commit 562e4bdb64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
return CLASS_RACEX_PREDATOR;
}
void CPitdrone::BodyChange(float horns)
void CPitdrone::BodyChange(int horns)
{
if (horns <= 0)
SetBodygroup(HORNGROUP, PITDRONE_HORNS0);