mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-02 17:26:35 +01:00
Fix #7594: Max speed rendered incorrectly in road vehicle purchase window when using original acceleration model (#7597)
An incorrect DParam index was used.
This commit is contained in:
parent
24493548da
commit
b9eb9a4af9
@ -685,7 +685,7 @@ static int DrawRoadVehPurchaseInfo(int left, int right, int y, EngineID engine_n
|
|||||||
DrawString(left, right, y, STR_PURCHASE_INFO_COST_REFIT_SPEED);
|
DrawString(left, right, y, STR_PURCHASE_INFO_COST_REFIT_SPEED);
|
||||||
} else {
|
} else {
|
||||||
SetDParam(0, e->GetCost());
|
SetDParam(0, e->GetCost());
|
||||||
SetDParam(2, e->GetDisplayMaxSpeed());
|
SetDParam(1, e->GetDisplayMaxSpeed());
|
||||||
DrawString(left, right, y, STR_PURCHASE_INFO_COST_SPEED);
|
DrawString(left, right, y, STR_PURCHASE_INFO_COST_SPEED);
|
||||||
}
|
}
|
||||||
y += FONT_HEIGHT_NORMAL;
|
y += FONT_HEIGHT_NORMAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user