Apply offroad terrain particle based on offroad check rather then boostpower
this should prevent issues with boostpower related scripts spawning errornous offroad dust
This commit is contained in:
parent
99c0257f02
commit
d48cd0f28f
1 changed files with 2 additions and 1 deletions
|
|
@ -1064,7 +1064,8 @@ offroadhandle:
|
|||
}
|
||||
|
||||
// - Being affected by offroad
|
||||
if (mo->player->boostpower >= FRACUNIT)
|
||||
// Using acutal offroad check here to prevent lua boostpower modifications from spawning the offroad particles - Nep
|
||||
if (!(K_ApplyOffroad(mo->player) && mo->player->offroad > 0))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue