(svn r14989) -Codechange: remove a lookup table by reordering some items in english.txt (Swallow)

This commit is contained in:
rubidium 2009-01-11 14:01:45 +00:00
parent 78d3fc59b9
commit 1ef953e4a5
2 changed files with 4 additions and 11 deletions

View File

@ -253,13 +253,6 @@ public:
virtual void OnPaint()
{
static const StringID _vehicle_type_names[] = {
STR_019F_TRAIN,
STR_019C_ROAD_VEHICLE,
STR_019E_SHIP,
STR_019D_AIRCRAFT
};
if (this->update_left || this->update_right) this->GenerateLists();
Company *c = GetCompany(_local_company);
@ -287,7 +280,7 @@ public:
!EngineHasReplacementForCompany(c, selected_id[0], selected_group));
/* now the actual drawing of the window itself takes place */
SetDParam(0, _vehicle_type_names[this->window_number]);
SetDParam(0, STR_019F_TRAIN + this->window_number);
if (this->window_number == VEH_TRAIN) {
/* set on/off for renew_keep_length */

View File

@ -478,10 +478,10 @@ STR_AGE :{COMMA} year{P
STR_AGE_RED :{RED}{COMMA} year{P "" s} ({COMMA})
############ range for service numbers ends
STR_019C_ROAD_VEHICLE :Road vehicle
STR_019D_AIRCRAFT :Aircraft
STR_019E_SHIP :Ship
STR_019F_TRAIN :Train
STR_019C_ROAD_VEHICLE :Road vehicle
STR_019E_SHIP :Ship
STR_019D_AIRCRAFT :Aircraft
STR_01A0_IS_GETTING_OLD :{WHITE}{VEHICLE} is getting old
STR_01A1_IS_GETTING_VERY_OLD :{WHITE}{VEHICLE} is getting very old
STR_01A2_IS_GETTING_VERY_OLD_AND :{WHITE}{VEHICLE} is getting very old and urgently needs replacing