Changeset - r20941:8dd8d2f8d788
[Not reviewed]
master
0 2 0
rubidium - 11 years ago 2013-11-16 09:49:13
rubidium@openttd.org
(svn r26006) -Fix [FS#5804]: Game script showing vehicle on a story book, then the vehicle being removed and eventually being replaced by a non-user vehicle (most likely smoke) causing an assertion to trigger
2 files changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/lang/english.txt
Show inline comments
 
@@ -2887,12 +2887,15 @@ STR_NEWGRF_BUGGY_UNKNOWN_CALLBACK_RESULT
 
STR_NEWGRF_INVALID_CARGO                                        :<invalid cargo>
 
STR_NEWGRF_INVALID_CARGO_ABBREV                                 :??
 
STR_NEWGRF_INVALID_CARGO_QUANTITY                               :{COMMA} of <invalid cargo>
 
STR_NEWGRF_INVALID_ENGINE                                       :<invalid vehicle model>
 
STR_NEWGRF_INVALID_INDUSTRYTYPE                                 :<invalid industry>
 

	
 
# Placeholders for other invalid stuff, e.g. vehicles that have gone (Game Script).
 
STR_INVALID_VEHICLE                                             :<invalid vehicle>
 

	
 
# NewGRF scanning window
 
STR_NEWGRF_SCAN_CAPTION                                         :{WHITE}Scanning NewGRFs
 
STR_NEWGRF_SCAN_MESSAGE                                         :{BLACK}Scanning NewGRFs. Depending on the amount this can take a while...
 
STR_NEWGRF_SCAN_STATUS                                          :{BLACK}{NUM} NewGRF{P "" s} scanned out of an estimated {NUM} NewGRF{P "" s}
 
STR_NEWGRF_SCAN_ARCHIVES                                        :Scanning for archives
 

	
src/strings.cpp
Show inline comments
 
@@ -1486,13 +1486,13 @@ static char *FormatString(char *buff, co
 
				} else {
 
					int64 args_array[] = {v->unitnumber};
 
					StringParameters tmp_params(args_array);
 

	
 
					StringID str;
 
					switch (v->type) {
 
						default: NOT_REACHED();
 
						default:           str = STR_INVALID_VEHICLE; break;
 
						case VEH_TRAIN:    str = STR_SV_TRAIN_NAME; break;
 
						case VEH_ROAD:     str = STR_SV_ROAD_VEHICLE_NAME; break;
 
						case VEH_SHIP:     str = STR_SV_SHIP_NAME; break;
 
						case VEH_AIRCRAFT: str = STR_SV_AIRCRAFT_NAME; break;
 
					}
 

	
0 comments (0 inline, 0 general)