comparison Indoor.cpp @ 90:8c6308bb19b3

2.11.12
author Ritor1
date Fri, 02 Nov 2012 00:41:52 +0600
parents f9a33f75bae3
children b5e26a133fae 51a5b0dc3f30
comparison
equal deleted inserted replaced
89:ecbd9b6ccf52 90:8c6308bb19b3
2024 //signed int Argsm; // [sp+670h] [bp+8h]@161 2024 //signed int Argsm; // [sp+670h] [bp+8h]@161
2025 //signed int Argsn; // [sp+670h] [bp+8h]@175 2025 //signed int Argsn; // [sp+670h] [bp+8h]@175
2026 2026
2027 //v5 = 0; 2027 //v5 = 0;
2028 //v6 = this; 2028 //v6 = this;
2029 _6807E0_num_decorations_6807B8 = 0; 2029 pNumSoundDecorations = 0;
2030 2030
2031 #pragma region "loading from txt" 2031 #pragma region "loading from txt"
2032 /*sprintf(FileName, "levels\\%s", pFilename); 2032 /*sprintf(FileName, "levels\\%s", pFilename);
2033 if ( GetFileAttributesA(FileName) != -1 ) 2033 if ( GetFileAttributesA(FileName) != -1 )
2034 { 2034 {
4443 bUnderwater = 1; 4443 bUnderwater = 1;
4444 pGame->uFlags2 |= 8u; 4444 pGame->uFlags2 |= 8u;
4445 } 4445 }
4446 if ( !_strcmpi(pCurrentMapName, "out15.odm") || !_strcmpi(pCurrentMapName, "d23.blv") ) 4446 if ( !_strcmpi(pCurrentMapName, "out15.odm") || !_strcmpi(pCurrentMapName, "d23.blv") )
4447 bNoNPCHiring = 1; 4447 bNoNPCHiring = 1;
4448 pPaletteManager->field_267AD3 = 0; 4448 pPaletteManager->pPalette_tintColor[0] = 0;
4449 pPaletteManager->field_267AD4 = 0; 4449 pPaletteManager->pPalette_tintColor[1] = 0;
4450 pPaletteManager->field_267AD5 = 0; 4450 pPaletteManager->pPalette_tintColor[2] = 0;
4451 pPaletteManager->RecalculateAll(); 4451 pPaletteManager->RecalculateAll();
4452 if ( qword_A750D8 ) 4452 if ( qword_A750D8 )
4453 qword_A750D8 = 0i64; 4453 qword_A750D8 = 0i64;
4454 v2 = pMapStats->GetMapInfo(pCurrentMapName); 4454 v2 = pMapStats->GetMapInfo(pCurrentMapName);
4455 v39 = v2; 4455 v39 = v2;
4608 auto pDecortaion = pLevelDecorations + i; 4608 auto pDecortaion = pLevelDecorations + i;
4609 4609
4610 pDecorationList->InitializeDecorationSprite(pDecortaion->uDecorationDescID); 4610 pDecorationList->InitializeDecorationSprite(pDecortaion->uDecorationDescID);
4611 4611
4612 v15 = pDecorationList->pDecorations[pDecortaion->uDecorationDescID].uSoundID; 4612 v15 = pDecorationList->pDecorations[pDecortaion->uDecorationDescID].uSoundID;
4613 if (v15 && _6807E0_num_decorations_6807B8 < 9) 4613 if (v15 && pNumSoundDecorations < 9)
4614 { 4614 {
4615 pSoundList->_4A9A67(v15, 0); 4615 pSoundList->_4A9A67(v15, 0);
4616 v16 = _6807E0_num_decorations_6807B8++; 4616 v16 = pNumSoundDecorations++;
4617 _6807B8_level_decorations_ids[v16] = i; 4617 _6807B8_level_decorations_ids[v16] = i;
4618 } 4618 }
4619 4619
4620 if ( !(pDecortaion->field_2 & 0x20) ) 4620 if ( !(pDecortaion->field_2 & 0x20) )
4621 { 4621 {