Browse Source

Fixed issue #5 Move blocked because of avoids.

Steve Thielemann 3 years ago
parent
commit
37b964a336
1 changed files with 8 additions and 0 deletions
  1. 8 0
      dispatchers.cpp

+ 8 - 0
dispatchers.cpp

@@ -650,6 +650,14 @@ void MoveDispatch::server_prompt(const std::string &prompt) {
       state = 3;
     }
   } else if (state == 3) {
+
+    if (prompt == "Clear Avoids? ") {
+      to_server("N");
+      why_failed = "No path / check avoids.";
+      success = false;
+      deactivate();
+    }
+
     if (at_command_prompt(prompt)) {
       // this happens when the sector is adjcent to current_sector.
       // Or it happens when the ship is FUBAR.