mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-07 11:51:20 +00:00
Center mobj quake on the z axis
This commit is contained in:
parent
2230c855ae
commit
e6a19362fc
2 changed files with 2 additions and 2 deletions
|
|
@ -9390,7 +9390,7 @@ void P_StartQuakeFromMobj(tic_t time, fixed_t intensity, fixed_t radius, mobj_t
|
|||
quake->epicenter = (mappoint_t *)Z_Malloc(sizeof(mappoint_t), PU_LEVEL, NULL);
|
||||
quake->epicenter->x = mobj->x;
|
||||
quake->epicenter->y = mobj->y;
|
||||
quake->epicenter->z = mobj->z;
|
||||
quake->epicenter->z = mobj->z + (mobj->height / 2);
|
||||
}
|
||||
|
||||
void P_DoQuakeOffset(UINT8 view, mappoint_t *viewPos, mappoint_t *offset)
|
||||
|
|
|
|||
|
|
@ -1026,7 +1026,7 @@ void P_Ticker(boolean run)
|
|||
{
|
||||
quake->epicenter->x = quake->mobj->x;
|
||||
quake->epicenter->y = quake->mobj->y;
|
||||
quake->epicenter->z = quake->mobj->z;
|
||||
quake->epicenter->z = quake->mobj->z + (quake->mobj->height / 2);
|
||||
}
|
||||
|
||||
quake = quake->next;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue