mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
(svn r10995) -Codechange: unify the way to get the displayed maxium speed of a vehicle. Patch by nycom.
This commit is contained in:
+1
-1
@@ -97,7 +97,7 @@ static void RoadVehDetailsWndProc(Window *w, WindowEvent *e)
|
||||
|
||||
/* Draw max speed */
|
||||
{
|
||||
SetDParam(0, v->max_speed * 10 / 32);
|
||||
SetDParam(0, v->GetDisplayMaxSpeed());
|
||||
DrawString(2, 25, STR_900E_MAX_SPEED, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user