Mercurial > mm7
comparison Arcomage.cpp @ 1038:39f42990698f
Cleanings
author | Nomad |
---|---|
date | Thu, 23 May 2013 03:29:29 +0200 |
parents | 3a5c8df8381d |
children | 39eaa6b00141 6b34a45a3983 |
comparison
equal
deleted
inserted
replaced
1035:306ec23b37df | 1038:39f42990698f |
---|---|
265 if ( v3 > 0 ) | 265 if ( v3 > 0 ) |
266 { | 266 { |
267 TranslateMessage(&pArcomageGame->msg); | 267 TranslateMessage(&pArcomageGame->msg); |
268 DispatchMessageA(&pArcomageGame->msg); | 268 DispatchMessageA(&pArcomageGame->msg); |
269 } | 269 } |
270 if (pAsyncMouse) | 270 /*if (pAsyncMouse) |
271 { | 271 { |
272 EnterCriticalSection(&pGame->pThreadWardInstance->csAsyncMouse); | 272 EnterCriticalSection(&pGame->pThreadWardInstance->csAsyncMouse); |
273 v4 = *((unsigned int *)pAsyncMouse + 7); | 273 v4 = *((unsigned int *)pAsyncMouse + 7); |
274 pArcomageGame->mouse_x = *((unsigned int *)pAsyncMouse + 6); | 274 pArcomageGame->mouse_x = *((unsigned int *)pAsyncMouse + 6); |
275 pArcomageGame->mouse_y = v4; | 275 pArcomageGame->mouse_y = v4; |
295 } | 295 } |
296 pAsyncMouse->_46B944(); | 296 pAsyncMouse->_46B944(); |
297 if ( !*((unsigned char *)pAsyncMouse + 90) ) | 297 if ( !*((unsigned char *)pAsyncMouse + 90) ) |
298 pArcomageGame->field_F6 = 1; | 298 pArcomageGame->field_F6 = 1; |
299 LeaveCriticalSection(&pGame->pThreadWardInstance->csAsyncMouse); | 299 LeaveCriticalSection(&pGame->pThreadWardInstance->csAsyncMouse); |
300 } | 300 }*/ |
301 memcpy(v2, &pArcomageGame->stru1, 0xCu); | 301 memcpy(v2, &pArcomageGame->stru1, 0xCu); |
302 return pArcomageGame->stru1.field_0 != 0; | 302 return pArcomageGame->stru1.field_0 != 0; |
303 } | 303 } |
304 | 304 |
305 | 305 |
1421 v3->ptr_0->_40E0F5(1, 1); | 1421 v3->ptr_0->_40E0F5(1, 1); |
1422 v3->ptr_0->_40DFFE(); | 1422 v3->ptr_0->_40DFFE(); |
1423 ++v3; | 1423 ++v3; |
1424 } | 1424 } |
1425 while ( (signed int)v3 < (signed int)&unk_5052C8 ); | 1425 while ( (signed int)v3 < (signed int)&unk_5052C8 ); |
1426 if (pAsyncMouse) | 1426 |
1427 { | |
1428 pAsyncMouse->_409E3D(*((unsigned char *)pAsyncMouse + 103)); | |
1429 pAsyncMouse->_46B944(); | |
1430 } | |
1431 pArcomageGame->pGameBackground.Release(); | 1427 pArcomageGame->pGameBackground.Release(); |
1432 pArcomageGame->pSprites.Release(); | 1428 pArcomageGame->pSprites.Release(); |
1433 pArcomageGame->bGameInProgress = 0; | 1429 pArcomageGame->bGameInProgress = 0; |
1434 viewparams->bRedrawGameUI = 1; | 1430 viewparams->bRedrawGameUI = 1; |
1435 if ( pVideoPlayer->AnyMovieLoaded() ) | 1431 if ( pVideoPlayer->AnyMovieLoaded() ) |
5752 int v7; // ecx@9 | 5748 int v7; // ecx@9 |
5753 int pXYZW[4]; // [sp+8h] [bp-1Ch]@5 | 5749 int pXYZW[4]; // [sp+8h] [bp-1Ch]@5 |
5754 int pXY[2]; // [sp+18h] [bp-Ch]@5 | 5750 int pXY[2]; // [sp+18h] [bp-Ch]@5 |
5755 int v10; // [sp+20h] [bp-4h]@3 | 5751 int v10; // [sp+20h] [bp-4h]@3 |
5756 | 5752 |
5757 if (pAsyncMouse) | |
5758 pAsyncMouse->_409E3D(1); | |
5759 pAudioPlayer->StopChannels(-1, -1); | 5753 pAudioPlayer->StopChannels(-1, -1); |
5760 strcpy(pArcomageGame->pPlayer1Name, pArcomagePlayer1Name); | 5754 strcpy(pArcomageGame->pPlayer1Name, pArcomagePlayer1Name); |
5761 strcpy(pArcomageGame->pPlayer2Name, pArcomagePlayer2Name); | 5755 strcpy(pArcomageGame->pPlayer2Name, pArcomagePlayer2Name); |
5762 am_byte_4FAA76 = 0; | 5756 am_byte_4FAA76 = 0; |
5763 am_byte_4FAA75 = 0; | 5757 am_byte_4FAA75 = 0; |