mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 13:01:56 +00:00
ignore offroad while in tiregrease
This commit is contained in:
parent
03056eb3b5
commit
f80ef0e051
1 changed files with 4 additions and 0 deletions
|
|
@ -1592,6 +1592,10 @@ static UINT8 K_CheckOffroadCollide(mobj_t *mo)
|
||||||
I_Assert(mo != NULL);
|
I_Assert(mo != NULL);
|
||||||
I_Assert(!P_MobjWasRemoved(mo));
|
I_Assert(!P_MobjWasRemoved(mo));
|
||||||
|
|
||||||
|
// If tiregrease is active, don't
|
||||||
|
if (mo->player && mo->player->tiregrease)
|
||||||
|
return 0;
|
||||||
|
|
||||||
for (node = mo->touching_sectorlist; node; node = node->m_sectorlist_next)
|
for (node = mo->touching_sectorlist; node; node = node->m_sectorlist_next)
|
||||||
{
|
{
|
||||||
if (!node->m_sector)
|
if (!node->m_sector)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue