mirror of
https://github.com/ENSL/NS.git
synced 2024-11-10 07:11:38 +00:00
Remove Debug Code
This commit is contained in:
parent
4102dabe05
commit
0a15148352
2 changed files with 1 additions and 3 deletions
|
@ -6838,7 +6838,6 @@ bool MoveTo(AvHAIPlayer* pBot, const Vector Destination, const BotMoveStyle Move
|
|||
if (!vIsZero(BotNavInfo->LastNavMeshPosition))
|
||||
{
|
||||
MoveDirectlyTo(pBot, BotNavInfo->LastNavMeshPosition);
|
||||
UTIL_DrawLine(nullptr, pBot->Edict->v.origin, BotNavInfo->LastNavMeshPosition, 255, 0, 0);
|
||||
|
||||
if (vDist2DSq(pBot->CurrentFloorPosition, BotNavInfo->LastNavMeshPosition) < sqrf(8.0f))
|
||||
{
|
||||
|
@ -6862,7 +6861,6 @@ bool MoveTo(AvHAIPlayer* pBot, const Vector Destination, const BotMoveStyle Move
|
|||
if (!vIsZero(BotNavInfo->UnstuckMoveLocation))
|
||||
{
|
||||
MoveDirectlyTo(pBot, BotNavInfo->UnstuckMoveLocation);
|
||||
UTIL_DrawLine(nullptr, pBot->Edict->v.origin, BotNavInfo->UnstuckMoveLocation, 255, 255, 0);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -6870,7 +6868,6 @@ bool MoveTo(AvHAIPlayer* pBot, const Vector Destination, const BotMoveStyle Move
|
|||
else
|
||||
{
|
||||
MoveDirectlyTo(pBot, Destination);
|
||||
UTIL_DrawLine(nullptr, pBot->Edict->v.origin, BotNavInfo->UnstuckMoveLocation, 0, 128, 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -8893,4 +8893,5 @@ void OnBotTeleport(AvHAIPlayer* pBot)
|
|||
{
|
||||
ClearBotStuck(pBot);
|
||||
ClearBotStuckMovement(pBot);
|
||||
pBot->BotNavInfo.LastOpenLocation = ZERO_VECTOR;
|
||||
}
|
Loading…
Reference in a new issue