Skip to content

Commit

Permalink
fix angry hord size
Browse files Browse the repository at this point in the history
  • Loading branch information
stalkerg committed Jan 13, 2025
1 parent b9161fe commit 6eafd13
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions src/units/effect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,43 +663,20 @@ void SimpleParticleType::QuantP(Vector _c, Vector _n, int s,int c)
else if(ty < -SPY_100)
ty += SPTorYSize;

/*px = ty*c;
py = -tx*c;
if (RND(3)){
tx += px;
ty += py;
} else {
tx = px - tx;
ty = py - ty;
} */

// vD.x >>= 1;
// vD.y >>= 1;

d = abs(tx) + abs(ty);
if(d > 100 && !RND(4)){
if(d > 100 && !RND((int)round(4 / XTCORE_FRAME_NORMAL))){
vD.x = tx * s / d;
vD.y = ty * s / d;
};

vD += _n;
vD.x += ((3 - RND(7))<<8);
vD.y += ((3 - RND(7))<<8);
/*d = abs(tx) + abs(ty);
if(d){
vD.x += tx * s / d;
vD.y += ty * s / d;
vD.z += (_n.z - _c.z) * s / d;
};*/
vR += vD * XTCORE_FRAME_NORMAL;

vR.x &= PTrack_mask_x;
vR.y &= PTrack_mask_y;
vR.z = _c.z;

// vR.x &= PTrack_mask_x;
// vR.y &= PTrack_mask_y;
};

void SimpleParticleType::QuantT(int x,int y,int s)
Expand Down Expand Up @@ -1962,7 +1939,7 @@ void EffectDispatcher::CreateParticleGenerator(Vector vC,Vector vT,Vector vD,int
{
ParticleGenerator* pg;
pg = (ParticleGenerator*)(UnitStorage[EFF_PARTICLE_GENERATOR].Active());
if(pg){
if(pg){
pg->CreateGenerator(vC,vT,vD,mode);
ConnectTypeList(pg);
GameD.ConnectBaseList(pg);
Expand Down

0 comments on commit 6eafd13

Please sign in to comment.