Mercurial > mm7
comparison Engine/Engine.cpp @ 2555:67d837007a4c
ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows & d3d deinit crashes fixed
author | a.parshin |
---|---|
date | Thu, 14 May 2015 10:34:40 +0200 |
parents | f2a8ed07e921 |
children | b8a56afc6ba1 |
comparison
equal
deleted
inserted
replaced
2554:f2a8ed07e921 | 2555:67d837007a4c |
---|---|
2092 | 2092 |
2093 | 2093 |
2094 //----- (00464479) -------------------------------------------------------- | 2094 //----- (00464479) -------------------------------------------------------- |
2095 void ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows() | 2095 void ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows() |
2096 { | 2096 { |
2097 int v0; // esi@9 | |
2098 | |
2099 if (pMouse) | 2097 if (pMouse) |
2100 pMouse->SetCursorBitmap("MICON1"); | 2098 pMouse->SetCursorBitmap("MICON1"); |
2101 | 2099 |
2102 pPaletteManager->ResetNonLocked(); | 2100 pPaletteManager->ResetNonLocked(); |
2103 pBitmaps_LOD->ReleaseAll2(); | 2101 pBitmaps_LOD->ReleaseAll2(); |
2111 | 2109 |
2112 pAudioPlayer->StopChannels(-1, -1); | 2110 pAudioPlayer->StopChannels(-1, -1); |
2113 pSoundList->_4A9D79(0); | 2111 pSoundList->_4A9D79(0); |
2114 uCurrentlyLoadedLevelType = LEVEL_null; | 2112 uCurrentlyLoadedLevelType = LEVEL_null; |
2115 pSpriteFrameTable->ResetSomeSpriteFlags(); | 2113 pSpriteFrameTable->ResetSomeSpriteFlags(); |
2116 v0 = uNumVisibleWindows; | |
2117 pParty->armageddon_timer = 0; | 2114 pParty->armageddon_timer = 0; |
2118 while (v0 > 0) | 2115 |
2119 { | 2116 while (uNumVisibleWindows > 0) |
2120 pWindowList[pVisibleWindowsIdxs[v0--] - 1]->Release(); | 2117 { |
2121 delete pWindowList[pVisibleWindowsIdxs[v0--] - 1]; | 2118 pWindowList[pVisibleWindowsIdxs[uNumVisibleWindows] - 1]->Release(); |
2122 pWindowList[pVisibleWindowsIdxs[v0--] - 1] = nullptr; | 2119 delete pWindowList[pVisibleWindowsIdxs[uNumVisibleWindows] - 1]; |
2120 pWindowList[pVisibleWindowsIdxs[uNumVisibleWindows] - 1] = nullptr; | |
2121 | |
2122 uNumVisibleWindows--; | |
2123 } | 2123 } |
2124 } | 2124 } |
2125 | 2125 |
2126 //----- (00461103) -------------------------------------------------------- | 2126 //----- (00461103) -------------------------------------------------------- |
2127 void _461103_load_level_sub() | 2127 void _461103_load_level_sub() |