Merge pull request #469 from BjossiAlfreds/floatfix

Added missing '== RANGE_MELEE'
This commit is contained in:
Yamagi 2019-09-28 16:17:32 +02:00 committed by GitHub
commit 56908ddfa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -665,7 +665,7 @@ floater_zap(edict_t *self)
gi.WriteByte(1); /* sparks */
gi.multicast(origin, MULTICAST_PVS);
if (range(self, self->enemy) && infront(self, self->enemy) &&
if (range(self, self->enemy) == RANGE_MELEE && infront(self, self->enemy) &&
visible(self, self->enemy))
{
T_Damage(self->enemy, self, self, dir, self->enemy->s.origin,