summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-01-28 20:54:29 +0000
committerterkhen <terkhen@openttd.org>2010-01-28 20:54:29 +0000
commitd4376779f843b1310a3e0c9a527f1a23698954ab (patch)
treefb14ad6b5ce1729913417f243ab98ac9d07966d3 /src/train_cmd.cpp
parent294bc146522ea305745889f123ed7debf8364f5d (diff)
downloadopenttd-d4376779f843b1310a3e0c9a527f1a23698954ab.tar.xz
(svn r18939) -Codechange [FS#3545]: Move train slope steepness to its own function.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index a1c9d51d2..f2c2e4d37 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -139,7 +139,7 @@ void Train::CargoChanged()
for (Train *u = this; u != NULL; u = u->Next()) {
uint32 current_weight = u->GetWeight();
weight += current_weight;
- u->tcache.cached_slope_resistance = current_weight * 20 * _settings_game.vehicle.train_slope_steepness; //1% slope * slope steepness
+ u->tcache.cached_slope_resistance = current_weight * u->GetSlopeSteepness();
}
/* store consist weight in cache */