(svn r16920) -Codechange: shuffle some strings around to simplify looking up vehicle type specific strings for a specific message

This commit is contained in:
rubidium
2009-07-22 20:17:07 +00:00
parent 49fcb20a91
commit 04ee98df52
9 changed files with 271 additions and 520 deletions

View File

@@ -95,7 +95,7 @@ Vehicle *EnsureNoTrainOnTrackProc(Vehicle *v, void *data)
Train *t = Train::From(v);
if ((t->track != rail_bits) && !TracksOverlap(t->track | rail_bits)) return NULL;
_error_message = VehicleInTheWayErrMsg(v);
_error_message = STR_ERROR_TRAIN_IN_THE_WAY + v->type;
return v;
}