File diff r7762:f53dd1eec4cf → r7763:878d494b5f57
src/ai/trolly/trolly.cpp
Show inline comments
 
@@ -951,13 +951,13 @@ static void AiNew_State_VerifyRoute(Play
 
	}
 

	
 
	// Now we know how much the route is going to cost us
 
	//  Check if we have enough money for it!
 
	if (p->ainew.new_cost > p->player_money - AI_MINIMUM_MONEY) {
 
		// Too bad..
 
		DEBUG(ai, 1, "Insufficient funds to build route (%d)", p->ainew.new_cost);
 
		DEBUG(ai, 1, "Insufficient funds to build route (%" OTTD_PRINTF64 "d)", (int64)p->ainew.new_cost);
 
		p->ainew.state = AI_STATE_NOTHING;
 
		return;
 
	}
 

	
 
	// Now we can build the route, check the direction of the stations!
 
	if (p->ainew.from_direction == AI_PATHFINDER_NO_DIRECTION) {
 
@@ -1083,13 +1083,13 @@ static void AiNew_State_BuildPath(Player
 
						}
 
					}
 
				}
 
			}
 
		}
 

	
 
		DEBUG(ai, 1, "Finished building path, cost: %d", p->ainew.new_cost);
 
		DEBUG(ai, 1, "Finished building path, cost: %" OTTD_PRINTF64 "d", (int64)p->ainew.new_cost);
 
		p->ainew.state = AI_STATE_BUILD_DEPOT;
 
	}
 
}
 

	
 

	
 
// Builds the depot