(svn r10995) -Codechange: unify the way to get the displayed maxium speed of a vehicle. Patch by nycom.

This commit is contained in:
rubidium
2007-08-28 06:46:33 +00:00
parent 41a0bd2b74
commit 2179faf5c8
9 changed files with 14 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ static void ShipDetailsWndProc(Window *w, WindowEvent *e)
/* Draw max speed */
{
SetDParam(0, v->max_speed * 10 / 32);
SetDParam(0, v->GetDisplayMaxSpeed());
DrawString(2, 25, STR_9813_MAX_SPEED, 0);
}