Fixing bugs
This commit is contained in:
1 parent
0240721d46
commit
570f051281
5 files changed
+49
-9
No files matched your search
+1
-2
@@ -15,7 +15,6 @@ namespace FRG {
|
||||
const float ATTACK_COOLDOWN_TIME = 1.6f;
|
||||
extern float x;
|
||||
extern float y;
|
||||
const float ATTACK_RANGE = 1.25f;
|
||||
|
||||
Dialogue::TranslationDatabase Character::nameTranslations;
|
||||
|
||||
@@ -256,7 +255,7 @@ void Character::update(int64_t deltaMs, const CharacterResolver& resolver) {
|
||||
setTarget(attackTarget->state.position);
|
||||
}
|
||||
state.battle_state = 0;
|
||||
} else if (distToGhost < state.visibleRange && distToGhost >= ATTACK_RANGE) {
|
||||
} else if (distToGhost < state.visibleRange && distToGhost >= kAttackRange) {
|
||||
setTarget(attackTarget->state.position);
|
||||
state.battle_state = 0;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user