add mobj islocal field

so we can skip the pushable trigger stuff for local mobjs for synch reasons
very sketchy
This commit is contained in:
Alug committed 2025-07-27 15:17:51 +02:00
1 parent ceb2a70664
commit 95504547df
1 file changed
+1 -1
+1 -1
View File
@@ -8998,7 +8998,7 @@ void P_MobjThinker(mobj_t *mobj)
const sector_t *sec1 = mobj->subsector ? mobj->subsector->sector : NULL;
// 970 allows ANY mobj to trigger a linedef exec
if (UNLIKELY(sec1 && GETSECSPECIAL(sec1->special, 2) == 8))
if (UNLIKELY(!mobj->islocal && sec1 && GETSECSPECIAL(sec1->special, 2) == 8)) // BEWARE: islocal does not exist in vanilla
{
sector_t *sec2;
sec2 = P_ThingOnSpecial3DFloor(mobj);