summaryrefslogtreecommitdiff
path: root/src/astar.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-13 02:55:05 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-13 02:55:05 +0000
commit682d6a9e44e583c088ed5970d69ef6bd9db7fd23 (patch)
tree73079cdd7d9b57d104c8db400f09aabc3d833122 /src/astar.cpp
parent3657bf87641144b605d49767cf466f04242c29c9 (diff)
downloadmana-client-682d6a9e44e583c088ed5970d69ef6bd9db7fd23.tar.gz
mana-client-682d6a9e44e583c088ed5970d69ef6bd9db7fd23.tar.bz2
mana-client-682d6a9e44e583c088ed5970d69ef6bd9db7fd23.tar.xz
mana-client-682d6a9e44e583c088ed5970d69ef6bd9db7fd23.zip
Got rid of Allegro ok dialog completely. Now just the yes_no dialog remaining.
Diffstat (limited to 'src/astar.cpp')
-rw-r--r--src/astar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/astar.cpp b/src/astar.cpp
index 00d3be4b..a1683699 100644
--- a/src/astar.cpp
+++ b/src/astar.cpp
@@ -297,12 +297,12 @@ PATH_NODE *find_path(int pathfinderID, int s_x, int s_y, int e_x, int e_y) {
temp->next = new PATH_NODE(
path_bank[pathLocation * 2 - 2],
path_bank[pathLocation * 2 - 1]);
- if(temp->next==NULL)ok("Error", "Unable to create path node");
+ if(temp->next==NULL) throw "Unable to create path node";
temp = temp->next;
pathLocation++;
}
if(temp!=NULL)temp->next = new PATH_NODE(e_x, e_y);
- else ok("Error", "Null reference");
+ else throw "Null reference";
return ret;
}