From 08de6b082af59087361b5d7e5be67b6e3cd66a82 Mon Sep 17 00:00:00 2001 From: celestar Date: Thu, 11 Jan 2007 11:05:01 +0000 Subject: (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(). --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/train_cmd.cpp') diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 431455ba0..c551d1872 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -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; -- cgit v1.2.3-54-g00ecf