File diff r2816:3dd6634c2a23 → r2817:7ad46034031f
train_cmd.c
Show inline comments
 
@@ -351,13 +351,13 @@ static int GetTrainAcceleration(Vehicle 
 
		return (force - resistance) / (mass * 4);
 
	} else {
 
		return min((-force - resistance) / (mass * 4), 10000 / (mass * 4));
 
	}
 
}
 

	
 
void UpdateTrainAcceleration(Vehicle *v)
 
static void UpdateTrainAcceleration(Vehicle* v)
 
{
 
	uint power = 0;
 
	uint weight = 0;
 

	
 
	assert(IsFrontEngine(v));
 

	
 
@@ -627,13 +627,13 @@ static const byte _railveh_score[] = {
 

	
 
static int32 EstimateTrainCost(const RailVehicleInfo* rvi)
 
{
 
	return (rvi->base_cost * (_price.build_railvehicle >> 3)) >> 5;
 
}
 

	
 
void AddRearEngineToMultiheadedTrain(Vehicle *v, Vehicle *u, bool building)
 
static void AddRearEngineToMultiheadedTrain(Vehicle* v, Vehicle* u, bool building)
 
{
 
	u->direction = v->direction;
 
	u->owner = v->owner;
 
	u->tile = v->tile;
 
	u->x_pos = v->x_pos;
 
	u->y_pos = v->y_pos;