- Applied Gez's BossBrainPatch3.

SVN r1049 (trunk)
This commit is contained in:
Randy Heit 2008-06-26 17:32:48 +00:00
parent 0669fb675f
commit 1b835d46c1
2 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,5 @@
June 26, 2008 June 26, 2008
- Applied Gez's BossBrainPatch3.
- Fixed: P_BulletSlope() did not return the linetarget. This effected - Fixed: P_BulletSlope() did not return the linetarget. This effected
the Sigil, A_JumpIfCloser, and A_JumpIfTargetInLOS. the Sigil, A_JumpIfCloser, and A_JumpIfTargetInLOS.

View file

@ -269,7 +269,8 @@ void A_BrainSpit (AActor *self)
{ {
spit->reactiontime = (targ->x - self->x) / spit->momx; 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) if (index >= 0)
@ -291,7 +292,8 @@ void A_SpawnFly (AActor *self)
AActor *targ; AActor *targ;
int r; int r;
if (--self->reactiontime) // [GZ] Should be more fiable than a countdown...
if (self->reactiontime > level.maptime)
return; // still flying return; // still flying
targ = self->target; targ = self->target;
@ -342,8 +344,7 @@ void A_SpawnFly (AActor *self)
if (di->Name != NAME_None) if (di->Name != NAME_None)
{ {
n -= di->amount; // logically, none of the -1 values have survived by now. 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... if (n > -1) di = di->Next; // If we get into the negatives, we've reached the end of the list.
// It would mean we've reached the end of the list of monsters.
} }
} }