mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add support for screen quakes effect
This commit is contained in:
parent
b98b4dda5f
commit
23548ebca7
1 changed files with 5 additions and 0 deletions
|
|
@ -9614,6 +9614,11 @@ void P_DoQuakeOffset(UINT8 view, mappoint_t *viewPos, mappoint_t *offset)
|
|||
|
||||
fixed_t maxShake = FixedMul(cv_cam_height[view].value, mapobjectscale) * 3 / 4;
|
||||
|
||||
if (mapheaderinfo[gamemap-1]->cameraHeight >= 0)
|
||||
{
|
||||
maxShake = FixedMul(mapheaderinfo[gamemap-1]->cameraHeight, mapobjectscale) * 3 / 4;
|
||||
}
|
||||
|
||||
if (battle)
|
||||
{
|
||||
addZ /= 2;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue