Fixed target initialization still using sf::Vector2i

Forgot to move manhattanDistance to .cpp
This commit is contained in:
Teo-CD 2019-06-08 17:08:15 +02:00
parent f7481f2bc9
commit 250a680cad
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;
}