Mercurial > mm7
comparison DecalBuilder.cpp @ 1079:81a30c2e3e0a
DecalBuilder small error
author | zipi |
---|---|
date | Sat, 25 May 2013 20:31:16 +0100 |
parents | 2210109f280d |
children | 74ab0ed7e308 |
comparison
equal
deleted
inserted
replaced
1078:b44dee7e70e8 | 1079:81a30c2e3e0a |
---|---|
447 //----- (0049BBBD) -------------------------------------------------------- | 447 //----- (0049BBBD) -------------------------------------------------------- |
448 bool DecalBuilder::ApplyBloodsplatDecals_IndoorFace(unsigned int uFaceID) | 448 bool DecalBuilder::ApplyBloodsplatDecals_IndoorFace(unsigned int uFaceID) |
449 { | 449 { |
450 double v7; // st7@12 | 450 double v7; // st7@12 |
451 | 451 |
452 uNumDecals = 0; | |
452 if (!pBloodsplatContainer->std__vector_pBloodsplats_size) | 453 if (!pBloodsplatContainer->std__vector_pBloodsplats_size) |
453 return true; | 454 return true; |
454 | 455 |
455 auto pFace = &pIndoor->pFaces[uFaceID]; | 456 auto pFace = &pIndoor->pFaces[uFaceID]; |
456 | 457 |
457 if (pFace->uAttributes & 0x400000) | 458 if (pFace->uAttributes & 0x400000) |
458 return true; | 459 return true; |
459 if (pFace->Fluid()) | 460 if (pFace->Fluid()) |
460 return true; | 461 return true; |
461 | |
462 for (uint i = 0; i < pBloodsplatContainer->std__vector_pBloodsplats_size; ++i) | 462 for (uint i = 0; i < pBloodsplatContainer->std__vector_pBloodsplats_size; ++i) |
463 { | 463 { |
464 auto pBloodsplat = pBloodsplatContainer->std__vector_pBloodsplats + i; | 464 auto pBloodsplat = pBloodsplatContainer->std__vector_pBloodsplats + i; |
465 if (pFace->pBounding.x1 - pBloodsplat->radius < pBloodsplat->x && | 465 if (pFace->pBounding.x1 - pBloodsplat->radius < pBloodsplat->x && |
466 pFace->pBounding.x2 + pBloodsplat->radius > pBloodsplat->x && | 466 pFace->pBounding.x2 + pBloodsplat->radius > pBloodsplat->x && |