Merge pull request #945 from noudess/patch-2

Update waypoints.cpp
This commit is contained in:
Michael Cook (mackal) 2020-01-17 14:52:31 -05:00 committed by GitHub
commit 5a1eac010b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@ void NPC::PauseWandering(int pausetime)
if (GetGrid() != 0) {
moving = false;
DistractedFromGrid = true;
LogPathing("Paused Wandering requested. Grid [{}]. Resuming in [{}] ms (0=not until told)", GetGrid(), pausetime);
LogPathing("Paused Wandering requested. Grid [{}]. Resuming in [{}] seconds (0=not until told)", GetGrid(), pausetime);
StopNavigation();
if (pausetime < 1) { // negative grid number stops him dead in his tracks until ResumeWandering()
SetGrid(0 - GetGrid());