diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/aircraft_gui.cpp | 2 | ||||
-rw-r--r-- | src/roadveh_gui.cpp | 2 | ||||
-rw-r--r-- | src/ship_gui.cpp | 2 | ||||
-rw-r--r-- | src/train_gui.cpp | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/aircraft_gui.cpp b/src/aircraft_gui.cpp index 3ccea1c52..f19ba61ae 100644 --- a/src/aircraft_gui.cpp +++ b/src/aircraft_gui.cpp @@ -40,7 +40,7 @@ void DrawAircraftDetails(const Aircraft *v, int left, int right, int y) SetDParam(0, u->engine_type); SetDParam(1, u->build_year); SetDParam(2, u->value); - DrawString(left, right, y, STR_VEHICLE_INFO_BUILT_VALUE); + DrawString(left, right, y, STR_VEHICLE_INFO_BUILT_VALUE, TC_FROMSTRING, SA_LEFT | SA_STRIP); SetDParam(0, u->cargo_type); SetDParam(1, u->cargo_cap); diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp index 43c00f635..7e874e108 100644 --- a/src/roadveh_gui.cpp +++ b/src/roadveh_gui.cpp @@ -40,7 +40,7 @@ void DrawRoadVehDetails(const Vehicle *v, int left, int right, int y) SetDParam(0, v->engine_type); SetDParam(1, v->build_year); SetDParam(2, v->value); - DrawString(left, right, y + y_offset, STR_VEHICLE_INFO_BUILT_VALUE); + DrawString(left, right, y + y_offset, STR_VEHICLE_INFO_BUILT_VALUE, TC_FROMSTRING, SA_LEFT | SA_STRIP); if (rv->HasArticulatedPart()) { CargoArray max_cargo; diff --git a/src/ship_gui.cpp b/src/ship_gui.cpp index b76d5fd86..ec426a749 100644 --- a/src/ship_gui.cpp +++ b/src/ship_gui.cpp @@ -72,7 +72,7 @@ void DrawShipDetails(const Vehicle *v, int left, int right, int y) SetDParam(0, v->engine_type); SetDParam(1, v->build_year); SetDParam(2, v->value); - DrawString(left, right, y, STR_VEHICLE_INFO_BUILT_VALUE); + DrawString(left, right, y, STR_VEHICLE_INFO_BUILT_VALUE, TC_FROMSTRING, SA_LEFT | SA_STRIP); SetDParam(0, v->cargo_type); SetDParam(1, v->cargo_cap); diff --git a/src/train_gui.cpp b/src/train_gui.cpp index f13b6c0db..6f2046038 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -159,12 +159,12 @@ static void TrainDetailsInfoTab(const Vehicle *v, int left, int right, int y) if (RailVehInfo(v->engine_type)->railveh_type == RAILVEH_WAGON) { SetDParam(0, v->engine_type); SetDParam(1, v->value); - DrawString(left, right, y, STR_VEHICLE_DETAILS_TRAIN_WAGON_VALUE); + DrawString(left, right, y, STR_VEHICLE_DETAILS_TRAIN_WAGON_VALUE, TC_FROMSTRING, SA_LEFT | SA_STRIP); } else { SetDParam(0, v->engine_type); SetDParam(1, v->build_year); SetDParam(2, v->value); - DrawString(left, right, y, STR_VEHICLE_DETAILS_TRAIN_ENGINE_BUILT_AND_VALUE); + DrawString(left, right, y, STR_VEHICLE_DETAILS_TRAIN_ENGINE_BUILT_AND_VALUE, TC_FROMSTRING, SA_LEFT | SA_STRIP); } } |