Skip to content

Commit

Permalink
removing unecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgomes28 committed Mar 6, 2024
1 parent 0ef728b commit 83b548e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/inv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,14 +379,12 @@ void ChangeTwoHandItem(Player &player)
locationToUnequip = INVLOC_HAND_RIGHT;
}
if (!AutoPlaceItemInInventory(player, player.InvBody[locationToUnequip], true)) {
return; // TODO this needs to return calling function
return;
}

if (locationToUnequip == INVLOC_HAND_RIGHT) {
RemoveEquipment(player, INVLOC_HAND_RIGHT, false);
} else {
// CMD_CHANGEPLRITEMS will eventually be sent for the left hand
// Can we RemoveEquipment(player, INVLOC_HAND_RIGHT, false) anyway????
player.InvBody[INVLOC_HAND_LEFT].clear();
}
}
Expand Down

0 comments on commit 83b548e

Please sign in to comment.