Mercurial > mm7
comparison mm7_4.cpp @ 761:f24fb0d64a5c
TileTable File
author | Gloval |
---|---|
date | Sat, 23 Mar 2013 17:07:08 +0400 |
parents | 7f1487b74571 9f7db515a8d7 |
children | a84db04439a4 90bcfb56c8f9 |
comparison
equal
deleted
inserted
replaced
760:7f1487b74571 | 761:f24fb0d64a5c |
---|---|
2871 } | 2871 } |
2872 } | 2872 } |
2873 } | 2873 } |
2874 | 2874 |
2875 //----- (00494820) -------------------------------------------------------- | 2875 //----- (00494820) -------------------------------------------------------- |
2876 unsigned int __fastcall sub_494820(unsigned int a1) | 2876 unsigned int __fastcall _494820_training_time(unsigned int a1) |
2877 { | 2877 { |
2878 signed int v1; // eax@1 | 2878 signed int v1; // eax@1 |
2879 | 2879 |
2880 v1 = 5; | 2880 v1 = 5; |
2881 if ( a1 % 0x18 >= 5 ) | 2881 if ( a1 % 24 >= 5 ) |
2882 v1 = 29; | 2882 v1 = 29; |
2883 return v1 - a1 % 0x18; | 2883 return v1 - a1 % 24; |
2884 } | 2884 } |
2885 | 2885 |
2886 //----- (00494836) -------------------------------------------------------- | 2886 //----- (00494836) -------------------------------------------------------- |
2887 int stru339_spell_sound::_494836(int uSoundID, int a6) | 2887 int stru339_spell_sound::_494836(int uSoundID, int a6) |
2888 { | 2888 { |
6348 v4.uFrameWidth = 148; | 6348 v4.uFrameWidth = 148; |
6349 v4.uFrameZ = 334; | 6349 v4.uFrameZ = 334; |
6350 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[427], pPlayer->pName, pGlobalTXT_LocalizationStrings[562]);// | 6350 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[427], pPlayer->pName, pGlobalTXT_LocalizationStrings[562]);// |
6351 // "%s is in no condition to %s" | 6351 // "%s is in no condition to %s" |
6352 // "do anything" | 6352 // "do anything" |
6353 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); | 6353 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(255, 255, 0x9Bu); |
6354 v3 = pFontArrus->CalcTextHeight(pTmpBuf, &v4, 0, 0); | 6354 v3 = pFontArrus->CalcTextHeight(pTmpBuf, &v4, 0, 0); |
6355 v4.DrawTitleText(pFontArrus, 0, (212 - v3) / 2 + 101, v2, pTmpBuf, 3u); | 6355 v4.DrawTitleText(pFontArrus, 0, (212 - v3) / 2 + 101, v2, pTmpBuf, 3u); |
6356 result = 0; | 6356 result = 0; |
6357 } | 6357 } |
6358 return result; | 6358 return result; |
8934 pParty->vPosition.y = v7; | 8934 pParty->vPosition.y = v7; |
8935 pParty->vPosition.z = v5->field_14; | 8935 pParty->vPosition.z = v5->field_14; |
8936 pParty->uFallStartY = pParty->vPosition.z; | 8936 pParty->uFallStartY = pParty->vPosition.z; |
8937 pParty->sRotationY = v5->field_18; | 8937 pParty->sRotationY = v5->field_18; |
8938 } | 8938 } |
8939 PlayHouseSound((unsigned int)window_SpeakInHouse->ptr_1C, HouseSound_NotEnoughMoney); | 8939 PlayHouseSound((unsigned int)window_SpeakInHouse->ptr_1C, HouseSound_NotEnoughMoney_TrainingSuccessful); |
8940 v12 = v5->uTravelTime; | 8940 v12 = v5->uTravelTime; |
8941 int _v47; | 8941 int _v47; |
8942 if ( (signed int)window_SpeakInHouse->ptr_1C >= 63 ) | 8942 if ( (signed int)window_SpeakInHouse->ptr_1C >= 63 ) |
8943 { | 8943 { |
8944 v63 = SPEECH_SetSail; | 8944 v63 = SPEECH_SetSail; |