Fixed target initialization still using sf::Vector2i

Forgot to move manhattanDistance to .cpp
This commit is contained in:
trotFunky 2019-06-08 17:08:15 +02:00
parent 633fda8336
commit e0443585d0
3 changed files with 9 additions and 7 deletions

View file

@ -21,7 +21,7 @@ Entity::Entity(int x, int y, EntityType type, sf::Texture* texture, int width, i
currentState = State::Idle;
nextState = State::Idle;
target = sf::Vector2i(shape.getPosition());
target = pro_maat::GridPos(x,y);
nextTarget = target;
}