Skip to content

Commit

Permalink
fix #261
Browse files Browse the repository at this point in the history
  • Loading branch information
Finnik723 committed Oct 28, 2024
1 parent 9c94456 commit 0280f46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Battlescape/TileEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5474,7 +5474,7 @@ void TileEngine::itemDropInventory(Tile *t, BattleUnit *unit, bool unprimeItems,
Collections::removeIf(*unit->getInventory(),
[&](BattleItem* i)
{
if (!i->getRules()->isFixed() && !i->getRules()->canBeEquippedInBattle())
if (!i->getRules()->isFixed() && i->getRules()->canBeEquippedInBattle())
{
i->setOwner(nullptr);
if (unprimeItems && i->getRules()->getFuseTimerType() != BFT_NONE)
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/RuleItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ class RuleItem
int getPowerForAnimation() const { return _powerForAnimation; }
/// Should the item's power be displayed in Ufopedia or not?
bool getHidePower() const { return _hidePower; }
/// Can this item be equipped or dropped after balle starts or not?
/// Can this item be equipped or dropped after battle starts or not?
bool canBeEquippedInBattle() const { return _canBeEquippedInBattle; }
/// Ok, so this isn't a melee type weapon but we're using it for melee... how much damage should it do?
int getMeleePower() const;
Expand Down

0 comments on commit 0280f46

Please sign in to comment.