diff mm7_2.cpp @ 27:be2066176d89

On level initialization
author Nomad
date Tue, 16 Oct 2012 01:31:05 +0200
parents 93bf1d5f6a6d
children 18f7a1b94448
line wrap: on
line diff
--- a/mm7_2.cpp	Tue Oct 16 00:05:53 2012 +0200
+++ b/mm7_2.cpp	Tue Oct 16 01:31:05 2012 +0200
@@ -11717,8 +11717,6 @@
     fclose(v1);
   }
 }
-// 6A0D0C: using guessed type int 6A0D0C_txt_lod_loading;
-// 6A0D10: using guessed type int 6A0D10_txt_lod_loading__unused;
 
 //----- (0046080D) --------------------------------------------------------
 void __cdecl sub_46080D()
@@ -11727,7 +11725,6 @@
   ptr_6A0D08 = 0;
   _6A0D0C_txt_lod_loading = 0;
 }
-// 6A0D0C: using guessed type int 6A0D0C_txt_lod_loading;
 
 //----- (0046082C) --------------------------------------------------------
 bool Initialize_GamesLOD_NewLOD()
@@ -13343,28 +13340,27 @@
 {
   int v0; // esi@9
 
-  if ( pMouse )
+  if (pMouse)
     pMouse->SetCursorBitmap("MICON1");
+
   pPaletteManager->ResetNonLocked();
   pBitmaps_LOD->ReleaseAll2();
   pSprites_LOD->DeleteSomeOtherSprites();
   pIcons_LOD->ReleaseAll2();
-  if ( pRenderer->pRenderD3D )
+  if (pRenderer->pRenderD3D)
   {
     pRenderer->field_1036B8 = 0;
     pRenderer->_gpu_memory_used = 0;
   }
   sub_46080D();
-  if ( uCurrentlyLoadedLevelType == LEVEL_Indoor )
-  {
+  if (uCurrentlyLoadedLevelType == LEVEL_Indoor)
     pIndoor->Release();
-  }
-  else if ( uCurrentlyLoadedLevelType == LEVEL_Outdoor )
-      pOutdoor->Release2();
+  else if (uCurrentlyLoadedLevelType == LEVEL_Outdoor)
+    pOutdoor->Release2();
 
   pAudioPlayer->StopChannels(-1, -1);
   pSoundList->_4A9D79(0);
-  uCurrentlyLoadedLevelType = (LEVEL_TYPE)0;
+  uCurrentlyLoadedLevelType = LEVEL_null;
   pSpriteFrameTable->ResetSomeSpriteFlags();
   v0 = uNumVisibleWindows;
   pParty->field_1613C = 0;
@@ -13441,8 +13437,8 @@
   day_fogrange_1 = 50;
   day_fogrange_2 = 5000;
 }
-// 6BE040: using guessed type int day_fogrange_1;
-// 6BE044: using guessed type int day_fogrange_2;
+
+
 
 //----- (00464866) --------------------------------------------------------
 void __fastcall DoPrepareWorld(unsigned int bLoading, int a2)
@@ -13460,7 +13456,7 @@
   v9 = bLoading;
   ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows();
   pDecalBuilder->Reset(0);
-  pGameLoadingUI_ProgressBar->_443484(v2);
+  pGameLoadingUI_ProgressBar->_443484((GUIProgressBar::Type)v2);
   strcpy(Str1, pCurrentMapName);
   v3 = strtok(Str1, ".");
   strcpy(Str1, v3);