src/ai/trolly/trolly.cpp
changeset 7763 342e5357b592
parent 7758 17ad53748c7b
child 8064 fef5cd447a5a
equal deleted inserted replaced
7762:78449448addc 7763:342e5357b592
   952 
   952 
   953 	// Now we know how much the route is going to cost us
   953 	// Now we know how much the route is going to cost us
   954 	//  Check if we have enough money for it!
   954 	//  Check if we have enough money for it!
   955 	if (p->ainew.new_cost > p->player_money - AI_MINIMUM_MONEY) {
   955 	if (p->ainew.new_cost > p->player_money - AI_MINIMUM_MONEY) {
   956 		// Too bad..
   956 		// Too bad..
   957 		DEBUG(ai, 1, "Insufficient funds to build route (%d)", p->ainew.new_cost);
   957 		DEBUG(ai, 1, "Insufficient funds to build route (%" OTTD_PRINTF64 "d)", (int64)p->ainew.new_cost);
   958 		p->ainew.state = AI_STATE_NOTHING;
   958 		p->ainew.state = AI_STATE_NOTHING;
   959 		return;
   959 		return;
   960 	}
   960 	}
   961 
   961 
   962 	// Now we can build the route, check the direction of the stations!
   962 	// Now we can build the route, check the direction of the stations!
  1084 					}
  1084 					}
  1085 				}
  1085 				}
  1086 			}
  1086 			}
  1087 		}
  1087 		}
  1088 
  1088 
  1089 		DEBUG(ai, 1, "Finished building path, cost: %d", p->ainew.new_cost);
  1089 		DEBUG(ai, 1, "Finished building path, cost: %" OTTD_PRINTF64 "d", (int64)p->ainew.new_cost);
  1090 		p->ainew.state = AI_STATE_BUILD_DEPOT;
  1090 		p->ainew.state = AI_STATE_BUILD_DEPOT;
  1091 	}
  1091 	}
  1092 }
  1092 }
  1093 
  1093 
  1094 
  1094