diff --git a/docs/rh-log.txt b/docs/rh-log.txt index efb51b8f96..a0f991d83e 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -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. diff --git a/src/g_doom/a_bossbrain.cpp b/src/g_doom/a_bossbrain.cpp index 8f96cfb601..b82857c47a 100644 --- a/src/g_doom/a_bossbrain.cpp +++ b/src/g_doom/a_bossbrain.cpp @@ -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. } }