Mercurial > mm7
diff mm7_6.cpp @ 1225:42b41aaecd87
Слияние
author | Ritor1 |
---|---|
date | Wed, 05 Jun 2013 21:00:45 +0600 |
parents | 15ad868d972f |
children | 0dbf6c4dd029 |
line wrap: on
line diff
--- a/mm7_6.cpp Wed Jun 05 21:00:11 2013 +0600 +++ b/mm7_6.cpp Wed Jun 05 21:00:45 2013 +0600 @@ -1,3 +1,7 @@ +#ifdef _MSC_VER +#define _CRT_SECURE_NO_WARNINGS +#endif + #include "MM7.h" @@ -1607,7 +1611,7 @@ while ( (signed __int64)v6->uExpireTime <= 0 ) { ++v6; - if ( v6 > &pParty->pPartyBuffs[19] ) + if ( v6 > &pParty->pPartyBuffs[PARTY_BUFF_WIZARD_EYE] ) { v7 = pParty->pPlayers;//[0].pPlayerBuffs; v8 = 0; @@ -2599,7 +2603,7 @@ AwardType *v607; // ecx@1100 __int16 v608; // ax@1102 signed int v609; // eax@1104 - //int v610; // edi@1106 + int v610; // edi@1106 unsigned int v611; // eax@1106 Player *v612; // edi@1106 DDM_DLV_Header *v613; // eax@1108 @@ -6207,8 +6211,7 @@ } v608 = pCastSpell->uPlayerID_2; if ( v608 != 4 && v608 != 5 - //|| (v609 = (signed int)*(&pFontCChar + v608 + (unsigned __int8)pParty->field_709), v609 <= 0) - || (v609 = achieved_awards[v608 + (unsigned __int8)pParty->field_709 - 4], v609 <= 0) + || (v609 = (signed int)*(&pFontCChar + v608 + (unsigned __int8)pParty->field_709), v609 <= 0) || v609 >= 3 ) { ShowStatusBarString(pGlobalTXT_LocalizationStrings[428], 2); // Spell failed @@ -6216,7 +6219,7 @@ pCastSpell->spellnum = 0; continue; } - //v610 = 76 * v609; + v610 = 76 * v609; //*((int *)&pParty->pPlayers[3].pInstalledBeacons[4].uBeaconTime + 19 * v609) = 0; pParty->pHirelings[v609-1].evt_B = 0; v611 = pIconsFrameTable->FindIcon("spell96"); @@ -6480,7 +6483,7 @@ const wchar_t *UIMessage2String(UIMessageType msg) { - #define CASE(xxx) case xxx: _swprintf(b, L"%03X/%s", msg, L#xxx); return b; + #define CASE(xxx) case xxx: swprintf(b, wcslen(L"%03X/%s"), L"%03X/%s", msg, L#xxx); return b; static wchar_t b[256]; // bad for threads switch (msg) { @@ -6571,7 +6574,7 @@ CASE(UIMSG_ToggleColoredLights) CASE(UIMSG_ToggleTint) default: - _swprintf(b, L"UIMSG_%03X", msg); return b; + swprintf(b, wcslen(L"UIMSG_%03X") , L"UIMSG_%03X", msg); return b; }; #undef CASE }