Permalink
Browse files

Change unnecessary float to bool

  • Loading branch information...
DolceTriade committed Dec 20, 2015
1 parent 62bce28 commit 61ba0031505e85d1b800b591a2d404fae10d13fa
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/sgame/components/AcidTubeComponent.cpp
@@ -20,7 +20,7 @@ void AcidTubeComponent::ConsiderAttack(int timeDelta) {
// TODO: Port gentity_t.powered.
if (!entity.oldEnt->powered) return;

float attacking = Utility::AntiHumanRadiusDamage(entity, ATTACK_DAMAGE * timeDelta * 0.001f,
bool attacking = Utility::AntiHumanRadiusDamage(entity, ATTACK_DAMAGE * timeDelta * 0.001f,
ATTACK_RANGE, MOD_ATUBE);

if (attacking && (lastAttackAnimation < 0 || level.time - lastAttackAnimation > 2000)) {

0 comments on commit 61ba003

Please sign in to comment.