comparison src/pathfinder/npf/aystar.cpp @ 19968:0dba7f49118c draft

(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
author planetmaker <planetmaker@openttd.org>
date Tue, 08 Jan 2013 22:46:42 +0000
parents 6b010ca839cd
children
comparison
equal deleted inserted replaced
19967:c2d0016cc9d6 19968:0dba7f49118c
122 assert(new_h >= 0); 122 assert(new_h >= 0);
123 123
124 /* The f-value if g + h */ 124 /* The f-value if g + h */
125 new_f = new_g + new_h; 125 new_f = new_g + new_h;
126 126
127 /* Get the pointer to the parent in the ClosedList (the currentone is to a copy of the one in the OpenList) */ 127 /* Get the pointer to the parent in the ClosedList (the current one is to a copy of the one in the OpenList) */
128 closedlist_parent = this->ClosedListIsInList(&parent->path.node); 128 closedlist_parent = this->ClosedListIsInList(&parent->path.node);
129 129
130 /* Check if this item is already in the OpenList */ 130 /* Check if this item is already in the OpenList */
131 check = this->OpenListIsInList(current); 131 check = this->OpenListIsInList(current);
132 if (check != NULL) { 132 if (check != NULL) {