summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Train.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/vehicles/Train.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vehicles/Train.cpp b/src/vehicles/Train.cpp
index cf00cc63..dada1b21 100644
--- a/src/vehicles/Train.cpp
+++ b/src/vehicles/Train.cpp
@@ -484,8 +484,8 @@ CTrain::InitTrains(void)
void
CTrain::Shutdown(void)
{
- if(pTrackNodes) delete[] pTrackNodes;
- if(pTrackNodes_S) delete[] pTrackNodes_S;
+ delete[] pTrackNodes;
+ delete[] pTrackNodes_S;
pTrackNodes = nil;
pTrackNodes_S = nil;
}
@@ -582,7 +582,7 @@ CTrain::ReadAndInterpretTrackFile(char *filename, CTrainNode **nodes, int16 *num
interpLines[j].speed = 15.0f;
interpLines[j].acceleration = -45.0f/32.0f;
j++;
- time += 16.0f/3.0f;
+ time += 80.0f/15.0f;
position += 40.0f; // at station
// stopping
@@ -601,7 +601,7 @@ CTrain::ReadAndInterpretTrackFile(char *filename, CTrainNode **nodes, int16 *num
interpLines[j].speed = 0.0f;
interpLines[j].acceleration = 45.0f/32.0f;
j++;
- time += 16.0f/3.0f;
+ time += 80.0f/15.0f;
position += 40.0f; // after station
}
// last keyframe
@@ -657,7 +657,7 @@ CTrain::UpdateTrains(void)
}
// time offset for each train
- time += 0x10000;
+ time += 0x20000/2;
}
ProcessTrainAnnouncements();
@@ -687,7 +687,7 @@ CTrain::UpdateTrains(void)
}
// time offset for each train
- time += 0x10000;
+ time += 0x40000/4;
}
}