mirror of
https://git.vectorsigma.ru/public/mod-playerbots.git
synced 2026-08-01 00:19:16 +00:00
Collision check in movement
This commit is contained in:
@@ -95,7 +95,7 @@ bool MoveToRpgTargetAction::Execute(Event event)
|
||||
x += cos(angle) * INTERACTION_DISTANCE * distance;
|
||||
y += sin(angle) * INTERACTION_DISTANCE * distance;
|
||||
if (!wo->GetMap()->CheckCollisionAndGetValidCoords(wo, wo->GetPositionX(), wo->GetPositionY(), wo->GetPositionZ(),
|
||||
x, y, z, false))
|
||||
x, y, z))
|
||||
{
|
||||
x = wo->GetPositionX();
|
||||
y = wo->GetPositionY();
|
||||
|
||||
Reference in New Issue
Block a user