mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r15205) -Revert (r7421, partial): Support for MaxTE solves problem in a better way
This commit is contained in:
parent
0d52f3b417
commit
92b9ff3f96
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue