mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Play spring TERRAIN sfx from sector
This commit is contained in:
parent
8d39f0e60f
commit
eef944bb1b
1 changed files with 6 additions and 4 deletions
|
|
@ -557,6 +557,8 @@ void K_ProcessTerrainEffect(mobj_t *mo)
|
||||||
// Spring
|
// Spring
|
||||||
if (terrain->springStrength)
|
if (terrain->springStrength)
|
||||||
{
|
{
|
||||||
|
sector_t *sector = player->mo->subsector->sector;
|
||||||
|
|
||||||
const pslope_t *slope;
|
const pslope_t *slope;
|
||||||
angle_t angle = 0;
|
angle_t angle = 0;
|
||||||
|
|
||||||
|
|
@ -575,7 +577,7 @@ void K_ProcessTerrainEffect(mobj_t *mo)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
slope = player->mo->subsector->sector->c_slope;
|
slope = sector->c_slope;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -586,7 +588,7 @@ void K_ProcessTerrainEffect(mobj_t *mo)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
slope = player->mo->subsector->sector->f_slope;
|
slope = sector->f_slope;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -605,8 +607,8 @@ void K_ProcessTerrainEffect(mobj_t *mo)
|
||||||
FixedMul(terrain->springStrength, si),
|
FixedMul(terrain->springStrength, si),
|
||||||
angle, terrain->springStarColor);
|
angle, terrain->springStarColor);
|
||||||
|
|
||||||
// FIXME: this sound shouldn't move with the player
|
sector->soundorg.z = player->mo->z;
|
||||||
S_StartSound(player->mo, sfx_s3kb1);
|
S_StartSound(§or->soundorg, sfx_s3kb1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bumpy floor
|
// Bumpy floor
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue