Fixed target initialization still using sf::Vector2i
Forgot to move manhattanDistance to .cpp
This commit is contained in:
parent
633fda8336
commit
e0443585d0
3 changed files with 9 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue