mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-22 22:19:08 +00:00
(svn r8055) -Codechange: Replace the different max, dmax, maxu whatever macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max().
This commit is contained in:
@@ -365,7 +365,7 @@ static int GetTrainAcceleration(Vehicle *v, bool mode)
|
||||
|
||||
if (IsTileType(v->tile, MP_STATION) && IsFrontEngine(v)) {
|
||||
if (TrainShouldStop(v, v->tile)) {
|
||||
uint station_length = GetPlatformLength(v->tile, DirToDiagDir(v->direction));
|
||||
int station_length = GetPlatformLength(v->tile, DirToDiagDir(v->direction));
|
||||
int delta_v;
|
||||
|
||||
max_speed = 120;
|
||||
|
Reference in New Issue
Block a user