fix(Core): a typo introduced in the Rest & Inn Improvements (#3985)

This commit is contained in:
Meltie2013
2020-12-12 16:24:48 -06:00
committed by GitHub
parent 30275b0810
commit 282966c117

View File

@@ -3048,7 +3048,7 @@ bool Player::IsInAreaTriggerRadius(const AreaTrigger* trigger) const
else
{
Position center(trigger->x, trigger->y, trigger->z, trigger->orientation);
if (IsWithinBox(center, trigger->length / 2 + delta, trigger->width / 2 + delta, trigger->height / 2 + delta))
if (!IsWithinBox(center, trigger->length / 2 + delta, trigger->width / 2 + delta, trigger->height / 2 + delta))
return false;
}