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

summaryrefslogtreecommitdiff
path: root/source/game/StarItemDrop.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-08-18 18:06:00 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-08-18 18:06:00 +1000
commit0c2015118be46e2670171fc64dc02d22d56789b7 (patch)
tree1ce63c9968406a8c9dc16d1ccd04eeaad986be66 /source/game/StarItemDrop.cpp
parentaa0ef06ac64542183a6f66bbfcad7d4cb45e9fd9 (diff)
Armor Item improvements (& other misc)
TODO: Make option to return to previewing with dummy
Diffstat (limited to 'source/game/StarItemDrop.cpp')
-rw-r--r--source/game/StarItemDrop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarItemDrop.cpp b/source/game/StarItemDrop.cpp
index 4bf41e5..4e9feeb 100644
--- a/source/game/StarItemDrop.cpp
+++ b/source/game/StarItemDrop.cpp
@@ -382,7 +382,7 @@ void ItemDrop::updateTaken(bool master) {
targetPosition += m_overheadOffset;
auto rect = owningEntity->collisionArea();
if (!rect.isNull())
- targetPosition[1] += rect.yMax() + 1.5;
+ targetPosition[1] += rect.yMax() + 1.5f;
else
targetPosition[1] += 1.5f;
}