(svn r10258) -Codechange: as we are now using int64 all over the place, it's better to use int64 variables in the string generating too instead of packing them into two int32s.
-Fix: some displays of money were wrong.
This commit is contained in:
@@ -3422,7 +3422,7 @@ void TrainsYearlyLoop()
|
||||
if (v->type == VEH_TRAIN && IsFrontEngine(v)) {
|
||||
/* show warning if train is not generating enough income last 2 years (corresponds to a red icon in the vehicle list) */
|
||||
if (_patches.train_income_warn && v->owner == _local_player && v->age >= 730 && v->profit_this_year < 0) {
|
||||
SetDParamMoney(1, v->profit_this_year);
|
||||
SetDParam(1, v->profit_this_year);
|
||||
SetDParam(0, v->unitnumber);
|
||||
AddNewsItem(
|
||||
STR_TRAIN_IS_UNPROFITABLE,
|
||||
|
Reference in New Issue
Block a user