mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-03 13:42:31 +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(!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)
|
||||
{
|
||||
if (!node->m_sector)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue