Mercurial > might-and-magic-trilogy
comparison Vis.cpp @ 49:25fabc49627b
Слияние
author | Ritor1 |
---|---|
date | Tue, 23 Oct 2012 17:34:20 +0600 |
parents | bcc051713d20 |
children | fde5c5acb66e |
comparison
equal
deleted
inserted
replaced
48:6a62c4005f0e | 49:25fabc49627b |
---|---|
359 v5 = 0; | 359 v5 = 0; |
360 thisa = this; | 360 thisa = this; |
361 v17 = 0; | 361 v17 = 0; |
362 for ( a1.flt_2C = 0.0; v17 < (signed int)pStru170->uNumFaceIDs; ++v17 ) | 362 for ( a1.flt_2C = 0.0; v17 < (signed int)pStru170->uNumFaceIDs; ++v17 ) |
363 { | 363 { |
364 __debugbreak(); | |
364 v6 = pStru170->pFaceIDs[2 * v5]; | 365 v6 = pStru170->pFaceIDs[2 * v5]; |
365 if ( v6 >= 0 ) | 366 if ( v6 >= 0 ) |
366 { | 367 { |
367 if ( v6 < (signed int)pIndoor->uNumFaces ) | 368 if ( v6 < (signed int)pIndoor->uNumFaces ) |
368 { | 369 { |
1598 } | 1599 } |
1599 | 1600 |
1600 //----- (004C0646) -------------------------------------------------------- | 1601 //----- (004C0646) -------------------------------------------------------- |
1601 bool Vis::PickMouse(float fDepth, float fMouseX, float fMouseY, stru157 *a5, stru157 *a6) | 1602 bool Vis::PickMouse(float fDepth, float fMouseX, float fMouseY, stru157 *a5, stru157 *a6) |
1602 { | 1603 { |
1603 Vis *v6; // esi@1 | |
1604 bool result; // eax@4 | |
1605 RenderVertexSoft pMouseRay[2]; // [sp+1Ch] [bp-60h]@1 | 1604 RenderVertexSoft pMouseRay[2]; // [sp+1Ch] [bp-60h]@1 |
1606 | 1605 |
1607 v6 = this; | 1606 stru1.uNumPointers = 0; |
1608 this->stru1.uNumPointers = 0; | |
1609 CastPickRay(pMouseRay, fMouseX, fMouseY, fDepth); | 1607 CastPickRay(pMouseRay, fMouseX, fMouseY, fDepth); |
1610 PickBillboards(fDepth, fMouseX, fMouseY, &v6->stru1, a5); | 1608 PickBillboards(fDepth, fMouseX, fMouseY, &stru1, a5); |
1611 if (uCurrentlyLoadedLevelType == LEVEL_Indoor) | 1609 if (uCurrentlyLoadedLevelType == LEVEL_Indoor) |
1612 PickIndoor(fDepth, pMouseRay, &v6->stru1, a6); | 1610 PickIndoor(fDepth, pMouseRay, &stru1, a6); |
1613 else | 1611 else |
1614 PickOutdoor(fDepth, pMouseRay, &v6->stru1, a6, 0); | 1612 PickOutdoor(fDepth, pMouseRay, &stru1, a6, 0); |
1615 v6->stru1.create_object_pointers(0); | 1613 stru1.create_object_pointers(0); |
1616 sort_object_pointers(v6->stru1.array_1804, 0, v6->stru1.uNumPointers - 1); | 1614 sort_object_pointers(stru1.array_1804, 0, stru1.uNumPointers - 1); |
1617 return true; | 1615 return true; |
1618 } | 1616 } |
1619 | 1617 |
1620 //----- (004C06F8) -------------------------------------------------------- | 1618 //----- (004C06F8) -------------------------------------------------------- |
1621 void Vis::_4C06F8(float arg0, Vis_stru1 *a3, stru157 *a2) | 1619 void Vis::_4C06F8(float arg0, Vis_stru1 *a3, stru157 *a2) |