Changeset - r4839:d156721b0a1f
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2006-10-13 15:15:22
peter1138@openttd.org
(svn r6765) - Fix: Don't add up running cost of articulated engine parts.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -3557,13 +3557,13 @@ int32 GetTrainRunningCost(const Vehicle 
 
	int32 cost = 0;
 

	
 
	do {
 
		const RailVehicleInfo *rvi = RailVehInfo(v->engine_type);
 
		if (rvi->running_cost_base > 0)
 
			cost += rvi->running_cost_base * _price.running_rail[rvi->running_cost_class];
 
	} while ((v = v->next) != NULL);
 
	} while ((v = GetNextVehicle(v)) != NULL);
 

	
 
	return cost;
 
}
 

	
 
void OnNewDay_Train(Vehicle *v)
 
{
0 comments (0 inline, 0 general)