diff mm7_5.cpp @ 306:e33f5a1cdc46

Food status
author Nomad
date Tue, 19 Feb 2013 22:06:49 +0200
parents cc8e4dc397ec
children 2a09e1d6fc8f
line wrap: on
line diff
--- a/mm7_5.cpp	Tue Feb 19 21:50:33 2013 +0200
+++ b/mm7_5.cpp	Tue Feb 19 22:06:49 2013 +0200
@@ -3503,9 +3503,9 @@
           sub_41C0B8_set_status_string(pTmpBuf);
           continue;
         case UIMSG_ShowStatus_Food:
-          v173 = (char *)pParty->uNumFoodRations;
-          v157 = pGlobalTXT_LocalizationStrings[501];// You have %lu food"
-          goto _sprintex_2args_draw_status_and_continue;
+          sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[501], pParty->uNumFoodRations); // "You have %lu food"
+          sub_41C0B8_set_status_string(pTmpBuf);
+          continue;
         case UIMSG_ShowStatus_Player:
           pPlayer5 = pPlayers[uMessageParam];
           sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[429], pPlayer5->pName, pClassNames[pPlayer5->classType]);// "%s the %s"