diff --git a/src/k_battle.c b/src/k_battle.c index 59b3cd03b..dee57824e 100644 --- a/src/k_battle.c +++ b/src/k_battle.c @@ -673,6 +673,13 @@ void K_RunBattleOvertime(void) if (battleovertime.radius < minradius) battleovertime.radius = minradius; + + // Subtract the 10 second grace period of the barrier + if (battleovertime.enabled < 25*TICRATE) + { + battleovertime.enabled++; + Obj_PointPlayersToXY(battleovertime.x, battleovertime.y); + } } if (battleovertime.radius > 0) diff --git a/src/objects/battle-ufo.cpp b/src/objects/battle-ufo.cpp index 12a982309..b7aff6296 100644 --- a/src/objects/battle-ufo.cpp +++ b/src/objects/battle-ufo.cpp @@ -133,7 +133,10 @@ void Obj_BattleUFOThink(mobj_t *mobj) ufo->spawn_beam(); } - Obj_PointPlayersToXY(mobj->x, mobj->y); + if (!battleovertime.enabled) + { + Obj_PointPlayersToXY(mobj->x, mobj->y); + } } void Obj_BattleUFODeath(mobj_t *mobj)