(svn r15205) -Revert (r7421, partial): Support for MaxTE solves problem in a better way

This commit is contained in:
peter1138 2009-01-22 09:57:31 +00:00
parent 0d52f3b417
commit 92b9ff3f96
1 changed files with 1 additions and 3 deletions

View File

@ -502,11 +502,9 @@ static int GetTrainAcceleration(Vehicle *v, bool mode)
resistance += incl; resistance += incl;
resistance *= 4; //[N] resistance *= 4; //[N]
/* Due to the mph to m/s conversion below, at speeds below 3 mph the force is
* actually double the train's power */
const int max_te = v->u.rail.cached_max_te; // [N] const int max_te = v->u.rail.cached_max_te; // [N]
int force; int force;
if (speed > 2) { if (speed > 0) {
switch (v->u.rail.railtype) { switch (v->u.rail.railtype) {
case RAILTYPE_RAIL: case RAILTYPE_RAIL:
case RAILTYPE_ELECTRIC: case RAILTYPE_ELECTRIC: