From 9c0944aa09b1d36a60d81c41088a906064086bfb Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 21 Jun 2007 17:25:17 +0000 Subject: (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. --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/train_cmd.cpp') diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 228ccfb02..1d5a88877 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -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, -- cgit v1.2.3-54-g00ecf