summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/being/being.cpp4
-rw-r--r--src/being/being.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 8cd80d4dc..21eeeb879 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1907,7 +1907,9 @@ void Being::logic() restrict2
// Update pixel coordinates
setPixelPositionF(static_cast<float>(mX * mapTileSize
- + mapTileSize / 2 + xOffset), yOffset3);
+ + mapTileSize / 2 + xOffset),
+ yOffset3,
+ 0.0F);
}
if (A_UNLIKELY(mEmotionSprite))
diff --git a/src/being/being.h b/src/being/being.h
index b3ee99b5c..cfa00c7ba 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -514,7 +514,7 @@ class Being notfinal : public ActorSprite,
*/
inline void setPixelPositionF(const float x,
const float y,
- const float z = 0.0F) restrict2 A_INLINE
+ const float z) restrict2 A_INLINE
{ setPixelPositionF(Vector(x, y, z)); }
/**