|
@@ -1,5 +1,5 @@
|
|
-#include "../include/Cell.h"
|
|
|
|
-#include "../include/units/unit.h"
|
|
|
|
|
|
+#include "Cell.h"
|
|
|
|
+#include "unit.h"
|
|
#include <string>
|
|
#include <string>
|
|
#include <queue>
|
|
#include <queue>
|
|
#include <vector>
|
|
#include <vector>
|
|
@@ -148,7 +148,7 @@ std::vector <Cell*> Cell::actualPath(Cell* to) {
|
|
parent = TestParent;
|
|
parent = TestParent;
|
|
}
|
|
}
|
|
};
|
|
};
|
|
- if(parent == nullptr)throw std::string("Don`t recalculated");
|
|
|
|
|
|
+ if(parent == nullptr) throw std::string("Don`t recalculated");
|
|
f(to->getleftUp(), to);
|
|
f(to->getleftUp(), to);
|
|
f(to->getleft(), to);
|
|
f(to->getleft(), to);
|
|
f(to->getleftDown(), to);
|
|
f(to->getleftDown(), to);
|