mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-15 10:39:10 +00:00
(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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user