Mercurial > mm7
comparison mm7_6.cpp @ 810:f5156b8c61ad
savegame refactoring
author | Gloval |
---|---|
date | Tue, 26 Mar 2013 00:57:54 +0400 |
parents | 41b4e9769863 |
children | cfc65feef029 |
comparison
equal
deleted
inserted
replaced
796:14beae4f1723 | 810:f5156b8c61ad |
---|---|
8288 LOBYTE(v9) = v9 | 2; | 8288 LOBYTE(v9) = v9 | 2; |
8289 pAudioPlayer->PlaySound((SoundID)(SOUND_GoldReceived|0x14), v9, 0, -1, 0, 0, 0, 0); | 8289 pAudioPlayer->PlaySound((SoundID)(SOUND_GoldReceived|0x14), v9, 0, -1, 0, 0, 0, 0); |
8290 } | 8290 } |
8291 } | 8291 } |
8292 | 8292 |
8293 //----- (0042FA22) -------------------------------------------------------- | 8293 |
8294 SpriteObject *__cdecl sub_42FA22_mess_with_laying_item_list() | |
8295 { | |
8296 size_t v0; // edx@1 | |
8297 int v1; // ebp@1 | |
8298 SpriteObject *result; // eax@1 | |
8299 SpriteObject *v3; // ebx@1 | |
8300 | |
8301 v0 = 0; | |
8302 v1 = 0; | |
8303 //result = (char *)&pSpriteObjects[0].uObjectDescID; | |
8304 result = pSpriteObjects; | |
8305 v3 = pSpriteObjects; | |
8306 do | |
8307 { | |
8308 if ( result->uObjectDescID ) | |
8309 { | |
8310 if ( v1 != v0 ) | |
8311 { | |
8312 memcpy(v3, result, 0x70u); | |
8313 result->uObjectDescID = 0; | |
8314 } | |
8315 ++v0; | |
8316 ++v3;// = (char *)v3 + 112; | |
8317 } | |
8318 ++result;// += 112; | |
8319 ++v1; | |
8320 } | |
8321 //while ( (signed int)result < (signed int)((char *)&pObjectList->uNumObjects + 2) ); | |
8322 while( result <= &pSpriteObjects[999] ); | |
8323 uNumSpriteObjects = v0; | |
8324 return result; | |
8325 } | |
8326 | 8294 |
8327 //----- (0042FA66) -------------------------------------------------------- | 8295 //----- (0042FA66) -------------------------------------------------------- |
8328 int __fastcall _42FA66_do_explosive_impact(int a1, int a2, int a3, int a4, __int16 a5, signed int a6) | 8296 int __fastcall _42FA66_do_explosive_impact(int a1, int a2, int a3, int a4, __int16 a5, signed int a6) |
8329 { | 8297 { |
8330 int v6; // edi@1 | 8298 int v6; // edi@1 |