mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 05:11:29 +00:00
Fix for edge case with roambox water logic
This commit is contained in:
parent
b92e83a465
commit
6fc20939e8
@ -1702,6 +1702,14 @@ void NPC::AI_DoMovement() {
|
|||||||
(m_Position.z - 15)
|
(m_Position.z - 15)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If someone brought us into water when we naturally wouldn't path there, return to spawn
|
||||||
|
*/
|
||||||
|
if (zone->watermap->InLiquid(position) && zone->watermap->InLiquid(m_Position)) {
|
||||||
|
roambox_destination_x = m_SpawnPoint.x;
|
||||||
|
roambox_destination_y = m_SpawnPoint.y;
|
||||||
|
}
|
||||||
|
|
||||||
if (zone->watermap->InLiquid(position)) {
|
if (zone->watermap->InLiquid(position)) {
|
||||||
Log(Logs::Detail,
|
Log(Logs::Detail,
|
||||||
Logs::NPCRoamBox, "%s | My destination is in water and I don't belong there!",
|
Logs::NPCRoamBox, "%s | My destination is in water and I don't belong there!",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user