mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- Applied Gez's BossBrainPatch3.
SVN r1049 (trunk)
This commit is contained in:
parent
0669fb675f
commit
1b835d46c1
2 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
June 26, 2008
|
||||
- Applied Gez's BossBrainPatch3.
|
||||
- Fixed: P_BulletSlope() did not return the linetarget. This effected
|
||||
the Sigil, A_JumpIfCloser, and A_JumpIfTargetInLOS.
|
||||
|
||||
|
|
|
@ -269,7 +269,8 @@ void A_BrainSpit (AActor *self)
|
|||
{
|
||||
spit->reactiontime = (targ->x - self->x) / spit->momx;
|
||||
}
|
||||
spit->reactiontime /= spit->state->GetTics();
|
||||
// [GZ] Calculates when the projectile will have reached destination
|
||||
spit->reactiontime += level.maptime;
|
||||
}
|
||||
|
||||
if (index >= 0)
|
||||
|
@ -291,7 +292,8 @@ void A_SpawnFly (AActor *self)
|
|||
AActor *targ;
|
||||
int r;
|
||||
|
||||
if (--self->reactiontime)
|
||||
// [GZ] Should be more fiable than a countdown...
|
||||
if (self->reactiontime > level.maptime)
|
||||
return; // still flying
|
||||
|
||||
targ = self->target;
|
||||
|
@ -342,8 +344,7 @@ void A_SpawnFly (AActor *self)
|
|||
if (di->Name != NAME_None)
|
||||
{
|
||||
n -= di->amount; // logically, none of the -1 values have survived by now.
|
||||
if (n > -1) di = di->Next; // If we get into the negatives, a spawnfog could be spawned...
|
||||
// It would mean we've reached the end of the list of monsters.
|
||||
if (n > -1) di = di->Next; // If we get into the negatives, we've reached the end of the list.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue