changeset 2549 | f1d3b383d557 |
parent 2381 | de9053fe2a2c |
child 2682 | 94ca0b4dc53f |
--- a/ai/trolly/pathfinder.c Sat Oct 22 06:39:32 2005 +0000 +++ b/ai/trolly/pathfinder.c Sun Oct 23 13:04:44 2005 +0000 @@ -506,9 +506,5 @@ } } - // Res should never be below zero.. if so, make it zero! - if (res < 0) { res = 0; } - - // Return our value - return res; + return (res < 0) ? 0 : res; }