Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/game/StarHumanoid.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/game/StarHumanoid.cpp b/source/game/StarHumanoid.cpp
index 9f6f8a3..d296842 100644
--- a/source/game/StarHumanoid.cpp
+++ b/source/game/StarHumanoid.cpp
@@ -749,10 +749,12 @@ List<Drawable> Humanoid::render(bool withItems, bool withRotation) {
addDrawable(Drawable::makeImage(AssetPath::split(image), 1.0f / TilePixels, true, {}));
}
- if (m_primaryHand.nonRotatedDrawables.size())
- drawables.insertAllAt(0, m_primaryHand.nonRotatedDrawables);
- if (m_altHand.nonRotatedDrawables.size())
- drawables.insertAllAt(0, m_altHand.nonRotatedDrawables);
+ if (withItems) {
+ if (m_primaryHand.nonRotatedDrawables.size())
+ drawables.insertAllAt(0, m_primaryHand.nonRotatedDrawables);
+ if (m_altHand.nonRotatedDrawables.size())
+ drawables.insertAllAt(0, m_altHand.nonRotatedDrawables);
+ }
if (withRotation)
Drawable::rotateAll(drawables, m_rotation);