[Bug Fix] Reversed logic on InLiquid (#3979)

Thank you @noudness for catching this. Reversed logic on InLiquid check for falling damage.
This commit is contained in:
Fryguy 2024-01-14 11:22:48 -05:00 committed by GitHub
parent 906879ce2e
commit 135ee6b2b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6256,7 +6256,7 @@ void Client::Handle_OP_EnvDamage(const EQApplicationPacket *app)
if (ed->dmgtype == EQ::constants::EnvironmentalDamage::Falling) {
if (zone->HasWaterMap()) {
auto target_position = glm::vec3(GetX(), GetY(), GetZ());
if (!zone->watermap->InLiquid(target_position)) {
if (zone->watermap->InLiquid(target_position)) {
return;
}
}