Skip to content
Snippets Groups Projects
Commit 3d9dcd8c authored by Frederik's avatar Frederik
Browse files

Fix wrong position of moving units

parent 94445918
Branches
No related tags found
2 merge requests!29Merge main into box2d to implement physics,!19Let units show their hp
......@@ -64,7 +64,7 @@ void Unit::render(Engine& engine, int scale)
SDL_Rect dst;
dst.x = ((m_x * spritesheet->getUnitWidth()) - 4) * scale;
dst.y = ((m_y * spritesheet->getUnitHeight()) - 4) * scale;
dst.y = ((m_y * spritesheet->getUnitHeight()) - 8) * scale;
dst.w = spritesheet->getUnitMovingWidth() * scale;
dst.h = spritesheet->getUnitMovingHeight() * scale;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment