mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-18 02:21:47 +00:00
Forgot to take scale into account consistently.
This commit is contained in:
parent
2ffc06c0bc
commit
4b385eb7eb
1 changed files with 4 additions and 3 deletions
|
@ -3380,12 +3380,13 @@ void A_ParticleSpawn(mobj_t *actor)
|
||||||
{
|
{
|
||||||
for (i = 0; i < actor->lastlook; i++)
|
for (i = 0; i < actor->lastlook; i++)
|
||||||
{
|
{
|
||||||
spawn = P_SpawnMobj(actor->x + FixedMul(actor->friction, FINECOSINE(actor->angle>>ANGLETOFINESHIFT)),
|
spawn = P_SpawnMobj(
|
||||||
actor->y + FixedMul(actor->friction, FINESINE(actor->angle>>ANGLETOFINESHIFT)),
|
actor->x + FixedMul(FixedMul(actor->friction, actor->scale), FINECOSINE(actor->angle>>ANGLETOFINESHIFT)),
|
||||||
|
actor->y + FixedMul(FixedMul(actor->friction, actor->scale), FINESINE(actor->angle>>ANGLETOFINESHIFT)),
|
||||||
actor->z,
|
actor->z,
|
||||||
(mobjtype_t)actor->cvmem);
|
(mobjtype_t)actor->cvmem);
|
||||||
P_SetScale(spawn, actor->scale);
|
P_SetScale(spawn, actor->scale);
|
||||||
spawn->momz = actor->movefactor;
|
spawn->momz = FixedMul(actor->movefactor, spawn->scale);
|
||||||
spawn->destscale = spawn->scale/100;
|
spawn->destscale = spawn->scale/100;
|
||||||
spawn->scalespeed = spawn->scale/actor->health;
|
spawn->scalespeed = spawn->scale/actor->health;
|
||||||
spawn->tics = (tic_t)actor->health;
|
spawn->tics = (tic_t)actor->health;
|
||||||
|
|
Loading…
Reference in a new issue