curx = start->sct_x;
cury = start->sct_y;
total_mcost = 0.0;
- if (getsect(curx, cury, §) < 0) {
+ if (!getsect(curx, cury, §)) {
logerror("move_path: getsect %d,%d", curx, cury);
return -1;
}
*/
tmpx = curx + diroff[dir][0];
tmpy = cury + diroff[dir][1];
- if (getsect(tmpx, tmpy, &next) < 0) {
+ if (!getsect(tmpx, tmpy, &next)) {
pr("You can't go there...\n");
*movstr = 0;
continue;