Permalink
Browse files

Change unnecessary float to bool

  • Loading branch information...
DolceTriade committed Dec 20, 2015
1 parent 62bce28 commit 92035fc2ac55fbfeb43c717a43e96339f7dbc5c4
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 92035fc

Please sign in to comment.