Removed nogravity flag on touching bulbs/turbines (fixes #245)

This commit is contained in:
zander3312 2025-09-30 22:02:54 +00:00 committed by Eidolon
parent daa6dbd667
commit 8363ead346
2 changed files with 2 additions and 1 deletions

View file

@ -292,7 +292,7 @@ void Obj_BulbTouched(mobj_t *special, mobj_t *toucher)
P_MoveOrigin(toucher, special->x, special->y, special->z);
toucher->player->nocontrol = 1;
P_SetTarget(&toucher->tracer, special);
toucher->flags &= ~MF_SHOOTABLE;
toucher->flags &= ~(MF_SHOOTABLE|MF_NOGRAVITY);
toucher->renderflags |= RF_DONTDRAW;
P_SetTarget(&special->target, toucher);
special->extravalue1 = spd;

View file

@ -220,6 +220,7 @@ void Obj_playerWPZTurbine(player_t *p)
}
mt = t->spawnpoint;
pmo->flags &= ~MF_NOGRAVITY;
opt1 = (mt->thing_args[0] != 0);