Permalink
Browse files

Hopefully fixed the 'Miss' and 'status' indicators placement.

Those were staying to the left when the character was going
up to the enemies.
  • Loading branch information...
1 parent 1df57cd commit faf89d94f64bf369ea5109bb81927190b4ee0143 Yohann Ferreira committed Sep 16, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/modes/battle/battle_indicators.cpp
View
3 src/modes/battle/battle_indicators.cpp
@@ -145,6 +145,7 @@ void IndicatorElement::_UpdateDrawPosition() {
break;
case MISS_INDICATOR:
+ _x_absolute_position = _actor->GetXLocation();
_y_absolute_position = _actor->GetYLocation() + (_actor->GetSpriteHeight() / 2);
if (_actor->IsEnemy())
@@ -157,13 +158,15 @@ void IndicatorElement::_UpdateDrawPosition() {
_y_position -= 5.0f / 1000 * elapsed_ms;
break;
case NEGATIVE_STATUS_EFFECT_INDICATOR:
+ _x_absolute_position = _actor->GetXLocation();
_y_absolute_position = _actor->GetYLocation() + (_actor->GetSpriteHeight() / 3 * 2);
_y_position -= 5.0f / 1000 * elapsed_ms;
break;
default:
case HEALING_INDICATOR:
case POSITIVE_STATUS_EFFECT_INDICATOR:
+ _x_absolute_position = _actor->GetXLocation();
_y_absolute_position = _actor->GetYLocation() + (_actor->GetSpriteHeight() / 3 * 2);
_y_position += 5.0f / 1000 * elapsed_ms;

0 comments on commit faf89d9

Please sign in to comment.