summaryrefslogtreecommitdiff
path: root/order_cmd.c
diff options
context:
space:
mode:
authorludde <ludde@openttd.org>2005-07-17 12:29:33 +0000
committerludde <ludde@openttd.org>2005-07-17 12:29:33 +0000
commitd4e0c72867a1111e40777a8af0721ba1dd2fa071 (patch)
tree9417e199477603634e93499798237277fd4661b4 /order_cmd.c
parent06a6cc59eab839cfbc4363453c8ca075c5fe8b35 (diff)
downloadopenttd-d4e0c72867a1111e40777a8af0721ba1dd2fa071.tar.xz
(svn r2599) Fix: Road vehicle multistop handling used NPF even if NPF was off????
- Also simplified/optimized the code. - Now it uses manhattan distance as an approximation instead of actual distance to find the distance. Much faster.
Diffstat (limited to 'order_cmd.c')
-rw-r--r--order_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/order_cmd.c b/order_cmd.c
index 92be684e7..2f0e43b39 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -844,7 +844,7 @@ bool CheckOrders(uint data_a, uint data_b)
return false;
/* Only check every 20 days, so that we don't flood the message log */
- if ( ( ( v->day_counter % 20) == 0 ) && (v->owner == _local_player) ) {
+ if ( (v->owner == _local_player) && (v->day_counter % 20 == 0) ) {
int n_st, problem_type = -1;
const Order *order;
const Station *st;