Mercurial > mm7
diff UI/UiGame.cpp @ 1722:e1c451f4d5ba
m
author | Ritor1 |
---|---|
date | Wed, 25 Sep 2013 11:12:49 +0600 |
parents | 8cfb2e978445 |
children | c6fe09a06712 |
line wrap: on
line diff
--- a/UI/UiGame.cpp Wed Sep 25 09:03:56 2013 +0600 +++ b/UI/UiGame.cpp Wed Sep 25 11:12:49 2013 +0600 @@ -687,16 +687,16 @@ const char *v14; // eax@8 char *result; // eax@12 unsigned int pMapID; // eax@14 - int v19; // [sp+10h] [bp-1Ch]@1 - int v20; // [sp+14h] [bp-18h]@1 + int global_coord_X; // [sp+10h] [bp-1Ch]@1 + int global_coord_Y; // [sp+14h] [bp-18h]@1 unsigned int pY; // [sp+1Ch] [bp-10h]@1 unsigned int pX; // [sp+28h] [bp-4h]@1 result = 0; pMouse->GetClickPos(&pX, &pY); v3 = 1.0 / (float)((signed int)viewparams->uMinimapZoom * 0.000015258789); - v19 = (signed __int64)((double)(pX - 557) * v3 + (double)pParty->vPosition.x); - v20 = (signed __int64)((double)pParty->vPosition.y - (double)(pY - 74) * v3); + global_coord_X = (signed __int64)((double)(pX - 557) * v3 + (double)pParty->vPosition.x); + global_coord_Y = (signed __int64)((double)pParty->vPosition.y - (double)(pY - 74) * v3); if ( uCurrentlyLoadedLevelType != LEVEL_Outdoor || pOutdoor->uNumBModels <= 0 ) { pMapID = pMapStats->GetMapInfo(pCurrentMapName); @@ -709,8 +709,8 @@ { for ( uint j = 0; j < (uint)pOutdoor->uNumBModels; ++j ) { - v7 = int_get_vector_length(abs((signed)pOutdoor->pBModels[j].vBoundingCenter.x - v19), - abs((signed)pOutdoor->pBModels[j].vBoundingCenter.y - v20), 0); + v7 = int_get_vector_length(abs((signed)pOutdoor->pBModels[j].vBoundingCenter.x - global_coord_X), + abs((signed)pOutdoor->pBModels[j].vBoundingCenter.y - global_coord_Y), 0); if ( v7 < 2 * pOutdoor->pBModels[j].sBoundingRadius ) { if ( pOutdoor->pBModels[j].uNumFaces )