Mercurial > mm7
comparison ParticleEngine.cpp @ 33:a9e9c6989d04
20.01.13
author | Ritor1 |
---|---|
date | Sun, 20 Jan 2013 18:57:23 +0600 |
parents | 9c0607679772 |
children | ca142e247b73 5a08b193507f |
comparison
equal
deleted
inserted
replaced
32:4c90ae1041aa | 33:a9e9c6989d04 |
---|---|
516 uIDa = (LODWORD(v42) - pIndoorCamera->pos.z) << 16; | 516 uIDa = (LODWORD(v42) - pIndoorCamera->pos.z) << 16; |
517 X_4 = ((unsigned __int64)(uIDa * (signed __int64)v44) >> 16) | 517 X_4 = ((unsigned __int64)(uIDa * (signed __int64)v44) >> 16) |
518 + ((unsigned __int64)(v45 * (signed __int64)v3) >> 16); | 518 + ((unsigned __int64)(v45 * (signed __int64)v3) >> 16); |
519 if ( X_4 < 262144 ) | 519 if ( X_4 < 262144 ) |
520 return 0; | 520 return 0; |
521 v16 = ((unsigned __int64)(v47 * (signed __int64)v4) >> 16) - v43; | 521 v16 = ((unsigned __int64)(v47 * (signed __int64)v4) >> 16); //- v43;Ritor1:it's temporarily |
522 v17 = ((unsigned __int64)(uIDa * (signed __int64)v3) >> 16) | 522 v17 = ((unsigned __int64)(uIDa * (signed __int64)v3) >> 16) |
523 - ((unsigned __int64)(v45 * (signed __int64)v44) >> 16); | 523 - ((unsigned __int64)(v45 * (signed __int64)v44) >> 16); |
524 } | 524 } |
525 else | 525 else |
526 { | 526 { |
724 int v16; // [sp+60h] [bp-4h]@1 | 724 int v16; // [sp+60h] [bp-4h]@1 |
725 | 725 |
726 v14.uParentBillboardID = -1; | 726 v14.uParentBillboardID = -1; |
727 v1 = this; | 727 v1 = this; |
728 v2 = this->uStartParticle; | 728 v2 = this->uStartParticle; |
729 v5 = __OFSUB__(v2, this->uEndParticle); | 729 v5 = v2 > this->uEndParticle;// v5 = __OFSUB__(v2, this->uEndParticle); |
730 v3 = v2 == this->uEndParticle; | 730 v3 = v2 == this->uEndParticle; |
731 v4 = v2 - this->uEndParticle < 0; | 731 v4 = v2 - this->uEndParticle < 0; |
732 v16 = this->uStartParticle; | 732 v16 = this->uStartParticle; |
733 if ( (unsigned __int8)(v4 ^ v5) | v3 ) | 733 if ( (unsigned __int8)(v4 ^ v5) | v3 ) |
734 { | 734 { |
835 } | 835 } |
836 } | 836 } |
837 } | 837 } |
838 v7 += 104; | 838 v7 += 104; |
839 v2 = v16 + 1; | 839 v2 = v16 + 1; |
840 v5 = __OFSUB__(v16 + 1, v1->uEndParticle); | 840 v5 = v16 + 1 > v1->uEndParticle;// v5 = __OFSUB__(v16 + 1, v1->uEndParticle); |
841 v3 = v16 + 1 == v1->uEndParticle; | 841 v3 = v16 + 1 == v1->uEndParticle; |
842 v4 = v16++ + 1 - v1->uEndParticle < 0; | 842 v4 = v16++ + 1 - v1->uEndParticle < 0; |
843 } | 843 } |
844 while ( (unsigned __int8)(v4 ^ v5) | v3 ); | 844 while ( (unsigned __int8)(v4 ^ v5) | v3 ); |
845 } | 845 } |