From 39ce0178f9166e94aefccbd54c2687d99293f75d Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Wed, 5 Apr 2023 10:26:32 -0400 Subject: [PATCH] [Cleanup] Remove unnecessary conditions in Client::Consume() (#3265) # Notes - We check `increase < 0` prior to this, so this can't ever happen. --- zone/client.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/zone/client.cpp b/zone/client.cpp index 9e585c843..007c012f7 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -8355,9 +8355,6 @@ void Client::Consume(const EQ::ItemData *item, uint8 type, int16 slot, bool auto return; if (type == EQ::item::ItemTypeFood) { - if (increase < 0) - return; - m_pp.hunger_level += increase; LogFood("Consuming food, points added to hunger_level: [{}] - current_hunger: [{}]", increase, m_pp.hunger_level); @@ -8370,9 +8367,6 @@ void Client::Consume(const EQ::ItemData *item, uint8 type, int16 slot, bool auto LogFood("Eating from slot: [{}]", (int)slot); } else { - if (increase < 0) - return; - m_pp.thirst_level += increase; DeleteItemInInventory(slot, 1);