comparison mm7_5.cpp @ 306:e33f5a1cdc46

Food status
author Nomad
date Tue, 19 Feb 2013 22:06:49 +0200
parents cc8e4dc397ec
children 2a09e1d6fc8f
comparison
equal deleted inserted replaced
305:cc8e4dc397ec 306:e33f5a1cdc46
3501 sprintf(pTmpBuf, "%d:%02d%s %s %d %s %d", pNPCData4, pParty->uCurrentMinute, aAMPMNames[uNumSeconds], aDayNames[pParty->uDaysPlayed % 7], 3501 sprintf(pTmpBuf, "%d:%02d%s %s %d %s %d", pNPCData4, pParty->uCurrentMinute, aAMPMNames[uNumSeconds], aDayNames[pParty->uDaysPlayed % 7],
3502 7 * pParty->uCurrentMonthWeek + pParty->uDaysPlayed % 7 + 1, aMonthNames[pParty->uCurrentMonth], pParty->uCurrentYear); 3502 7 * pParty->uCurrentMonthWeek + pParty->uDaysPlayed % 7 + 1, aMonthNames[pParty->uCurrentMonth], pParty->uCurrentYear);
3503 sub_41C0B8_set_status_string(pTmpBuf); 3503 sub_41C0B8_set_status_string(pTmpBuf);
3504 continue; 3504 continue;
3505 case UIMSG_ShowStatus_Food: 3505 case UIMSG_ShowStatus_Food:
3506 v173 = (char *)pParty->uNumFoodRations; 3506 sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[501], pParty->uNumFoodRations); // "You have %lu food"
3507 v157 = pGlobalTXT_LocalizationStrings[501];// You have %lu food" 3507 sub_41C0B8_set_status_string(pTmpBuf);
3508 goto _sprintex_2args_draw_status_and_continue; 3508 continue;
3509 case UIMSG_ShowStatus_Player: 3509 case UIMSG_ShowStatus_Player:
3510 pPlayer5 = pPlayers[uMessageParam]; 3510 pPlayer5 = pPlayers[uMessageParam];
3511 sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[429], pPlayer5->pName, pClassNames[pPlayer5->classType]);// "%s the %s" 3511 sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[429], pPlayer5->pName, pClassNames[pPlayer5->classType]);// "%s the %s"
3512 strcat(pTmpBuf, ": "); 3512 strcat(pTmpBuf, ": ");
3513 v107 = pPlayer5->GetMajorConditionIdx(); 3513 v107 = pPlayer5->GetMajorConditionIdx();