(svn r26702) -Fix [FS#6067]: integer overflows in acceleration code causing either too low acceleration or too large acceleration
This commit is contained in:
@@ -113,9 +113,9 @@ struct GroundVehicle : public SpecializedVehicle<T, Type> {
|
||||
* Calculates the total slope resistance for this vehicle.
|
||||
* @return Slope resistance.
|
||||
*/
|
||||
inline int32 GetSlopeResistance() const
|
||||
inline int64 GetSlopeResistance() const
|
||||
{
|
||||
int32 incl = 0;
|
||||
int64 incl = 0;
|
||||
|
||||
for (const T *u = T::From(this); u != NULL; u = u->Next()) {
|
||||
if (HasBit(u->gv_flags, GVF_GOINGUP_BIT)) {
|
||||
|
Reference in New Issue
Block a user