summaryrefslogtreecommitdiff
path: root/engine_gui.c
diff options
context:
space:
mode:
authorludde <ludde@openttd.org>2005-07-16 20:58:04 +0000
committerludde <ludde@openttd.org>2005-07-16 20:58:04 +0000
commit64f6839816221873b9a5327fe038533a7d3b8a98 (patch)
tree69f0f649731f03bc4b9a79121d4b839e7400a826 /engine_gui.c
parent01f3b6b6fe88ccfbd2bfa2c7af495e1739471409 (diff)
downloadopenttd-64f6839816221873b9a5327fe038533a7d3b8a98.tar.xz
(svn r2594) Fix: [strgen] Misc updates to the string system.
- Renamed the plural command to "P" instead of "PLURAL". Now write something like this to append an s on plural: {P "" s}. (You can optionally still add an argument index to explicitly specifiy which number that's used) - Removed the pluralized cargo strings from the string files. The new method is to use the plural specifier {P} - Added support for genders. First add "##gender der das die" on top, then use {G=der} on a cargoname/industry to set the gender, and to switch between genders do something like {G neu neu neue} {STRING} - Updated the swedish/english translation with P strings.
Diffstat (limited to 'engine_gui.c')
-rw-r--r--engine_gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine_gui.c b/engine_gui.c
index f5817e4f0..72e939b5b 100644
--- a/engine_gui.c
+++ b/engine_gui.c
@@ -135,7 +135,7 @@ static void DrawTrainEngineInfo(int engine, int x, int y, int maxw)
SetDParam(5, STR_8838_N_A);
if (cap != 0) {
SetDParam(6, cap << multihead);
- SetDParam(5, _cargoc.names_long_p[rvi->cargo_type]);
+ SetDParam(5, _cargoc.names_long[rvi->cargo_type]);
}
DrawStringMultiCenter(x, y, STR_885B_COST_WEIGHT_T_SPEED_POWER, maxw);
}
@@ -217,7 +217,7 @@ static void DrawRoadVehEngineInfo(int engine, int x, int y, int maxw)
SetDParam(2, rvi->running_cost * _price.roadveh_running >> 8);
SetDParam(4, rvi->capacity);
- SetDParam(3, _cargoc.names_long_p[rvi->cargo_type]);
+ SetDParam(3, _cargoc.names_long[rvi->cargo_type]);
DrawStringMultiCenter(x, y, STR_902A_COST_SPEED_RUNNING_COST, maxw);
}
@@ -253,7 +253,7 @@ static void DrawShipEngineInfo(int engine, int x, int y, int maxw)
const ShipVehicleInfo *svi = ShipVehInfo(engine);
SetDParam(0, svi->base_cost * (_price.ship_base >> 3) >> 5);
SetDParam(1, svi->max_speed * 10 >> 5);
- SetDParam(2, _cargoc.names_long_p[svi->cargo_type]);
+ SetDParam(2, _cargoc.names_long[svi->cargo_type]);
SetDParam(3, svi->capacity);
SetDParam(4, svi->running_cost * _price.ship_running >> 8);
DrawStringMultiCenter(x, y, STR_982E_COST_MAX_SPEED_CAPACITY, maxw);