summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/build_vehicle_gui.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index e696b8a5b..a7883067e 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -755,10 +755,8 @@ static uint ShowAdditionalText(int left, int right, int y, EngineID engine)
uint16 callback = GetVehicleCallback(CBID_VEHICLE_ADDITIONAL_TEXT, 0, 0, engine, NULL);
if (callback == CALLBACK_FAILED) return y;
- /* STR_BLACK_STRING is used to start the string with {BLACK} */
- SetDParam(0, GetGRFStringID(GetEngineGRFID(engine), 0xD000 + callback));
- StartTextRefStackUsage(0);
- uint result = DrawStringMultiLine(left, right, y, INT32_MAX, STR_BLACK_STRING);
+ StartTextRefStackUsage(4);
+ uint result = DrawStringMultiLine(left, right, y, INT32_MAX, GetGRFStringID(GetEngineGRFID(engine), 0xD000 + callback), TC_BLACK);
StopTextRefStackUsage();
return result;
}