mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-13 17:16:37 +00:00
Fix skiddust positional scaling
This commit is contained in:
parent
ee7bc779ea
commit
cd152365fa
1 changed files with 8 additions and 5 deletions
13
src/p_user.c
13
src/p_user.c
|
|
@ -7776,11 +7776,14 @@ void P_SpawnSkidDust(player_t *player, fixed_t radius, boolean sound)
|
|||
mobj_t *mo = player->mo;
|
||||
mobj_t *particle;
|
||||
|
||||
radius >>= FRACBITS;
|
||||
if (radius)
|
||||
particle = P_SpawnMobjFromMobj(mo, P_RandomRange(-radius, radius) << FRACBITS, P_RandomRange(-radius, radius) << FRACBITS, 0, MT_SPINDUST);
|
||||
else
|
||||
particle = P_SpawnMobjFromMobj(mo, 0, 0, 0, MT_SPINDUST);
|
||||
particle = P_SpawnMobjFromMobj(mo, 0, 0, 0, MT_SPINDUST);
|
||||
if (radius >>= FRACBITS)
|
||||
{
|
||||
P_UnsetThingPosition(particle);
|
||||
particle->x += P_RandomRange(-radius, radius) << FRACBITS;
|
||||
particle->y += P_RandomRange(-radius, radius) << FRACBITS;
|
||||
P_SetThingPosition(particle);
|
||||
}
|
||||
particle->tics = 10;
|
||||
|
||||
particle->destscale = (2*mo->scale)/3;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue