comparison UI/UiGame.cpp @ 1722:e1c451f4d5ba

m
author Ritor1
date Wed, 25 Sep 2013 11:12:49 +0600
parents 8cfb2e978445
children c6fe09a06712
comparison
equal deleted inserted replaced
1721:1c072d19e397 1722:e1c451f4d5ba
685 int v7; // eax@4 685 int v7; // eax@4
686 ODMFace *pFace; // eax@6 686 ODMFace *pFace; // eax@6
687 const char *v14; // eax@8 687 const char *v14; // eax@8
688 char *result; // eax@12 688 char *result; // eax@12
689 unsigned int pMapID; // eax@14 689 unsigned int pMapID; // eax@14
690 int v19; // [sp+10h] [bp-1Ch]@1 690 int global_coord_X; // [sp+10h] [bp-1Ch]@1
691 int v20; // [sp+14h] [bp-18h]@1 691 int global_coord_Y; // [sp+14h] [bp-18h]@1
692 unsigned int pY; // [sp+1Ch] [bp-10h]@1 692 unsigned int pY; // [sp+1Ch] [bp-10h]@1
693 unsigned int pX; // [sp+28h] [bp-4h]@1 693 unsigned int pX; // [sp+28h] [bp-4h]@1
694 694
695 result = 0; 695 result = 0;
696 pMouse->GetClickPos(&pX, &pY); 696 pMouse->GetClickPos(&pX, &pY);
697 v3 = 1.0 / (float)((signed int)viewparams->uMinimapZoom * 0.000015258789); 697 v3 = 1.0 / (float)((signed int)viewparams->uMinimapZoom * 0.000015258789);
698 v19 = (signed __int64)((double)(pX - 557) * v3 + (double)pParty->vPosition.x); 698 global_coord_X = (signed __int64)((double)(pX - 557) * v3 + (double)pParty->vPosition.x);
699 v20 = (signed __int64)((double)pParty->vPosition.y - (double)(pY - 74) * v3); 699 global_coord_Y = (signed __int64)((double)pParty->vPosition.y - (double)(pY - 74) * v3);
700 if ( uCurrentlyLoadedLevelType != LEVEL_Outdoor || pOutdoor->uNumBModels <= 0 ) 700 if ( uCurrentlyLoadedLevelType != LEVEL_Outdoor || pOutdoor->uNumBModels <= 0 )
701 { 701 {
702 pMapID = pMapStats->GetMapInfo(pCurrentMapName); 702 pMapID = pMapStats->GetMapInfo(pCurrentMapName);
703 if ( pMapID == 0 ) 703 if ( pMapID == 0 )
704 result = "No Maze Info for this maze on file!"; 704 result = "No Maze Info for this maze on file!";
707 } 707 }
708 else 708 else
709 { 709 {
710 for ( uint j = 0; j < (uint)pOutdoor->uNumBModels; ++j ) 710 for ( uint j = 0; j < (uint)pOutdoor->uNumBModels; ++j )
711 { 711 {
712 v7 = int_get_vector_length(abs((signed)pOutdoor->pBModels[j].vBoundingCenter.x - v19), 712 v7 = int_get_vector_length(abs((signed)pOutdoor->pBModels[j].vBoundingCenter.x - global_coord_X),
713 abs((signed)pOutdoor->pBModels[j].vBoundingCenter.y - v20), 0); 713 abs((signed)pOutdoor->pBModels[j].vBoundingCenter.y - global_coord_Y), 0);
714 if ( v7 < 2 * pOutdoor->pBModels[j].sBoundingRadius ) 714 if ( v7 < 2 * pOutdoor->pBModels[j].sBoundingRadius )
715 { 715 {
716 if ( pOutdoor->pBModels[j].uNumFaces ) 716 if ( pOutdoor->pBModels[j].uNumFaces )
717 { 717 {
718 for ( uint i = 0; i < (uint)pOutdoor->pBModels[j].uNumFaces; ++i ) 718 for ( uint i = 0; i < (uint)pOutdoor->pBModels[j].uNumFaces; ++i )