# HG changeset patch # User Nomad # Date 1362544865 -7200 # Node ID 7c0763248a87b5612d4336b254aaf597c66e0a01 # Parent f451efdb7c8bf396dd15c4cf68307673121728f4 . diff -r f451efdb7c8b -r 7c0763248a87 Game.h --- a/Game.h Tue Mar 05 16:14:22 2013 +0200 +++ b/Game.h Wed Mar 06 06:41:05 2013 +0200 @@ -16,6 +16,8 @@ +#define GAME_FLAGS_2_DRAW_BLOODSPLATS 0x20 + /* 320 */ diff -r f451efdb7c8b -r 7c0763248a87 ParticleEngine.cpp --- a/ParticleEngine.cpp Tue Mar 05 16:14:22 2013 +0200 +++ b/ParticleEngine.cpp Wed Mar 06 06:41:05 2013 +0200 @@ -93,10 +93,10 @@ uTimeElapsed += pEventTimer->uTimeElapsed; pLines.uNumLines = 0; - //if (uCurrentlyLoadedLevelType == LEVEL_Indoor) - //DrawParticles_BLV(); - //else - //DrawParticles_ODM(); + if (uCurrentlyLoadedLevelType == LEVEL_Indoor) + DrawParticles_BLV(); + else + DrawParticles_ODM(); if (pRenderer->pRenderD3D) { diff -r f451efdb7c8b -r 7c0763248a87 mm7_2.cpp --- a/mm7_2.cpp Tue Mar 05 16:14:22 2013 +0200 +++ b/mm7_2.cpp Wed Mar 06 06:41:05 2013 +0200 @@ -11616,10 +11616,6 @@ pIcons_LOD->_4114F2(); } -int __stdcall pWinProc(HWND hWnd, UINT Msg, WPARAM wParam, unsigned int lParam) - { - return DefWindowProcA(hWnd, Msg, wParam, lParam); - } //----- (004637EB) -------------------------------------------------------- @@ -13168,9 +13164,9 @@ pGame->pGammaController->Initialize(uGammaPos * 0.1 + 0.6); if ( ReadWindowsRegistryInt("Bloodsplats", 1) ) - pGame->uFlags2 |= 0x20u; + pGame->uFlags2 |= GAME_FLAGS_2_DRAW_BLOODSPLATS; else - pGame->uFlags2 &= 0xFFFFFFDFu; + pGame->uFlags2 &= ~GAME_FLAGS_2_DRAW_BLOODSPLATS; uTurnSpeed = ReadWindowsRegistryInt("TurnDelta", 0); dword_6BE384_2dacceloff = ReadWindowsRegistryInt("2dacceloff", 0); diff -r f451efdb7c8b -r 7c0763248a87 mm7_5.cpp --- a/mm7_5.cpp Tue Mar 05 16:14:22 2013 +0200 +++ b/mm7_5.cpp Wed Mar 06 06:41:05 2013 +0200 @@ -5271,7 +5271,7 @@ //v55 = v33; if ( pRenderer->pRenderD3D ) { - if ( pGame->uFlags2 & 0x20 ) + if ( pGame->uFlags2 & GAME_FLAGS_2_DRAW_BLOODSPLATS ) { v50 = 0; pMonsterName = 0; @@ -5594,7 +5594,7 @@ v74 = v27; if ( pRenderer->pRenderD3D ) { - if ( pGame->uFlags2 & 0x20 ) + if ( pGame->uFlags2 & GAME_FLAGS_2_DRAW_BLOODSPLATS ) { v28 = (double)v74; v74 = v7->vPosition.z; @@ -5780,7 +5780,7 @@ v75 = v57; if ( pRenderer->pRenderD3D ) { - if ( pGame->uFlags2 & 0x20 ) + if ( pGame->uFlags2 & GAME_FLAGS_2_DRAW_BLOODSPLATS ) { v58 = (double)(signed int)v75; v75 = v44->vPosition.z; @@ -14794,7 +14794,7 @@ v2 = uTextureID_507C58; goto LABEL_12; } - if ( pGame->uFlags2 & 0x20 ) + if ( pGame->uFlags2 & GAME_FLAGS_2_DRAW_BLOODSPLATS ) pRenderer->DrawTextureIndexed( 0x14u, 0x119u, @@ -14970,7 +14970,7 @@ //----- (00415485) -------------------------------------------------------- -char *__cdecl DrawCopyrightWindow() +void DrawCopyrightWindow() { GUIWindow Dst; // [sp+8h] [bp-54h]@1 @@ -14992,7 +14992,7 @@ Dst.uFrameHeight -= 12; Dst.uFrameZ = Dst.uFrameX + Dst.uFrameWidth - 1; Dst.uFrameW = Dst.uFrameY + Dst.uFrameHeight - 1; - return Dst.DrawTitleText(pFontSmallnum, 0, 0xCu, 0, pGlobalTXT_LocalizationStrings[157], 3u); + Dst.DrawTitleText(pFontSmallnum, 0, 0xCu, 0, pGlobalTXT_LocalizationStrings[157], 3u); } diff -r f451efdb7c8b -r 7c0763248a87 mm7_6.cpp --- a/mm7_6.cpp Tue Mar 05 16:14:22 2013 +0200 +++ b/mm7_6.cpp Wed Mar 06 06:41:05 2013 +0200 @@ -3756,7 +3756,7 @@ LABEL_139: DamageMonsterFromParty(8 * v42 | 2, v47, v670); goto LABEL_1056; - case 2: + case SPELL_FIRE_FIRE_BOLT: case 6: case 11: case 18: diff -r f451efdb7c8b -r 7c0763248a87 mm7_data.h --- a/mm7_data.h Tue Mar 05 16:14:22 2013 +0200 +++ b/mm7_data.h Wed Mar 06 06:41:05 2013 +0200 @@ -1852,7 +1852,7 @@ void __cdecl GameMenuUI_DrawVideoOptions(); void __cdecl DrawGameOptions(); void __fastcall DrawPopupWindow(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight); // idb -char *__cdecl DrawCopyrightWindow(); +void DrawCopyrightWindow(); void __cdecl GUI_UpdateWindows(); void __cdecl identify_item(); void __thiscall sub_416B01(void *_this);