comparison stru6.cpp @ 2428:c99c99439f6c

Merge
author a.parshin
date Wed, 23 Jul 2014 13:32:09 +0300
parents d922225a6081
children 104fdbea0386
comparison
equal deleted inserted replaced
2427:94393b73d333 2428:c99c99439f6c
1417 //----- (004A8C27) -------------------------------------------------------- 1417 //----- (004A8C27) --------------------------------------------------------
1418 void stru6::RenderSpecialEffects() 1418 void stru6::RenderSpecialEffects()
1419 { 1419 {
1420 double v4; // st7@4 1420 double v4; // st7@4
1421 double v5; // st6@4 1421 double v5; // st6@4
1422 //double v6; // st7@4
1423 float v7; // ST14_4@6 1422 float v7; // ST14_4@6
1424 unsigned int v8; // ST14_4@8 1423 unsigned int v8; // ST14_4@8
1425 unsigned int v9; // eax@8
1426 SpriteFrame *v10; // eax@8 1424 SpriteFrame *v10; // eax@8
1427 int v11; // edi@8 1425 int v11; // edi@8
1428 double v12; // st7@9
1429 double v13; // st7@9
1430 double v14; // st7@9
1431 double v15; // st6@9
1432 // HRESULT v16; // eax@9
1433 // HRESULT v17; // eax@9
1434 // signed __int64 v18; // qtt@10
1435 // const char *v19; // [sp+4h] [bp-E8h]@0
1436 // int v20; // [sp+8h] [bp-E4h]@0
1437 // unsigned int v21; // [sp+Ch] [bp-E0h]@0
1438 RenderVertexD3D3 vd3d[4]; // [sp+60h] [bp-8Ch]@9 1426 RenderVertexD3D3 vd3d[4]; // [sp+60h] [bp-8Ch]@9
1439 // int v24; // [sp+E0h] [bp-Ch]@10
1440 SpriteFrame *v70; // [sp+E4h] [bp-8h]@8
1441 unsigned int v26; // [sp+E8h] [bp-4h]@3
1442 1427
1443 if (uNumProjectiles) 1428 if (uNumProjectiles)
1444 { 1429 {
1445 DrawProjectiles(); 1430 DrawProjectiles();
1446 uNumProjectiles = 0; 1431 uNumProjectiles = 0;
1457 v7 = v5; 1442 v7 = v5;
1458 pRenderer->ScreenFade(uFadeColor, v7); 1443 pRenderer->ScreenFade(uFadeColor, v7);
1459 uFadeTime -= pEventTimer->uTimeElapsed; 1444 uFadeTime -= pEventTimer->uTimeElapsed;
1460 } 1445 }
1461 1446
1462 if (uAnimLength > 0) //Uninitialized memory access 1447 if (uAnimLength > 0)
1463 { 1448 {
1464 v8 = 8 1449 v8 = 8 * pSpriteFrameTable->pSpriteSFrames[pSpriteFrameTable->FastFindSprite("spell84")].uAnimLength - uAnimLength;
1465 * pSpriteFrameTable->pSpriteSFrames[pSpriteFrameTable->FastFindSprite("spell84")].uAnimLength 1450 v10 = pSpriteFrameTable->GetFrame(pSpriteFrameTable->FastFindSprite("spell84"), v8);
1466 - uAnimLength;
1467 v9 = pSpriteFrameTable->FastFindSprite("spell84");
1468 v10 = pSpriteFrameTable->GetFrame(v9, v8);
1469 v11 = v10->pHwSpriteIDs[0]; 1451 v11 = v10->pHwSpriteIDs[0];
1470 v70 = v10;
1471 uAnimLength -= pEventTimer->uTimeElapsed; 1452 uAnimLength -= pEventTimer->uTimeElapsed;
1472 //if ( pRenderer->pRenderD3D ) 1453 //if ( pRenderer->pRenderD3D )
1473 { 1454 //{
1474 v12 = (double)(signed int)pViewport->uViewportTL_X; 1455 vd3d[0].pos.x = (double)(signed int)pViewport->uViewportTL_X;
1475 vd3d[0].pos.x = v12; 1456 vd3d[0].pos.y = (double)(signed int)pViewport->uViewportTL_Y;
1476 vd3d[1].pos.x = v12; 1457 vd3d[0].pos.z = 0.0;
1477 v13 = (double)(signed int)pViewport->uViewportBR_X;
1478 v26 = pViewport->uViewportBR_Y + 1;
1479 vd3d[0].diffuse = 0x7F7F7Fu; 1458 vd3d[0].diffuse = 0x7F7F7Fu;
1459 vd3d[0].specular = 0;
1460 vd3d[0].rhw = 1.0;
1461 vd3d[0].texcoord.x = 0.0;
1462 vd3d[0].texcoord.y = 0.0;
1463
1464 vd3d[1].pos.x = (double)(signed int)pViewport->uViewportTL_X;
1465 vd3d[1].pos.y = (double)(pViewport->uViewportBR_Y + 1);
1466 vd3d[1].pos.z = 0.0;
1480 vd3d[1].diffuse = 0x7F7F7Fu; 1467 vd3d[1].diffuse = 0x7F7F7Fu;
1481 vd3d[2].pos.x = v13; 1468 vd3d[1].specular = 0;
1482 vd3d[3].pos.x = v13; 1469 vd3d[1].rhw = 1.0;
1483 v14 = (double)(signed int)pViewport->uViewportTL_Y; 1470 vd3d[1].texcoord.x = 0.0;
1471 vd3d[1].texcoord.y = 1.0;
1472
1473 vd3d[2].pos.x = (double)(signed int)pViewport->uViewportBR_X;
1474 vd3d[2].pos.y = (double)(pViewport->uViewportBR_Y + 1);
1475 vd3d[2].pos.z = 0.0;
1484 vd3d[2].diffuse = 0x7F7F7Fu; 1476 vd3d[2].diffuse = 0x7F7F7Fu;
1477 vd3d[2].specular = 0;
1478 vd3d[2].rhw = 1.0;
1479 vd3d[2].texcoord.x = 1.0;
1480 vd3d[2].texcoord.y = 1.0;
1481
1482 vd3d[3].pos.x = (double)(signed int)pViewport->uViewportBR_X;
1483 vd3d[3].pos.y = (double)(signed int)pViewport->uViewportTL_Y;
1484 vd3d[3].pos.z = 0.0;
1485 vd3d[3].diffuse = 0x7F7F7Fu; 1485 vd3d[3].diffuse = 0x7F7F7Fu;
1486 vd3d[0].specular = 0;
1487 vd3d[1].specular = 0;
1488 vd3d[0].pos.y = v14;
1489 v15 = (double)(pViewport->uViewportBR_Y + 1);
1490 vd3d[2].specular = 0;
1491 vd3d[3].specular = 0; 1486 vd3d[3].specular = 0;
1492 vd3d[1].pos.y = v15;
1493 vd3d[2].pos.y = v15;
1494 vd3d[3].pos.y = v14;
1495 vd3d[0].pos.z = 0.0;
1496 vd3d[1].pos.z = 0.0;
1497 vd3d[2].pos.z = 0.0;
1498 vd3d[3].pos.z = 0.0;
1499 vd3d[0].rhw = 1.0;
1500 vd3d[1].rhw = 1.0;
1501 vd3d[2].rhw = 1.0;
1502 vd3d[3].rhw = 1.0; 1487 vd3d[3].rhw = 1.0;
1503 vd3d[0].texcoord.x = 0.0;
1504 vd3d[1].texcoord.x = 0.0;
1505 vd3d[2].texcoord.x = 1.0;
1506 vd3d[3].texcoord.x = 1.0; 1488 vd3d[3].texcoord.x = 1.0;
1507 vd3d[0].texcoord.y = 0.0;
1508 vd3d[1].texcoord.y = 1.0;
1509 vd3d[2].texcoord.y = 1.0;
1510 vd3d[3].texcoord.y = 0.0; 1489 vd3d[3].texcoord.y = 0.0;
1511 1490
1512 pRenderer->DrawSpecialEffectsQuad(vd3d, pSprites_LOD->pHardwareSprites[v11].pTexture); 1491 pRenderer->DrawSpecialEffectsQuad(vd3d, pSprites_LOD->pHardwareSprites[v11].pTexture);
1513 } 1492 //}
1514 /*else 1493 /*else
1515 { 1494 {
1516 vsr.pTarget = pRenderer->pTargetSurface; 1495 vsr.pTarget = pRenderer->pTargetSurface;
1517 vsr.sParentBillboardID = -1; 1496 vsr.sParentBillboardID = -1;
1518 vsr.pTargetZ = pRenderer->pActiveZBuffer; 1497 vsr.pTargetZ = pRenderer->pActiveZBuffer;