fix: unglob std::{min, max}, manual stuff
This commit is contained in:
1 parent
967ffbb2a6
commit
04ff82ba70
54 files changed
+126
-126
No files matched your search
@@ -158,8 +158,8 @@ bool ItemEntity::merge(std::shared_ptr<ItemEntity> target)
|
||||
if (targetItem->count + myItem->count > targetItem->getMaxStackSize()) return false;
|
||||
|
||||
targetItem->count += myItem->count;
|
||||
target->throwTime = max(target->throwTime, this->throwTime);
|
||||
target->age = min(target->age, this->age);
|
||||
target->throwTime = std::max(target->throwTime, this->throwTime);
|
||||
target->age = std::min(target->age, this->age);
|
||||
target->setItem(targetItem);
|
||||
remove();
|
||||
|
||||
|
||||
Reference in new issue
Block a user