- Remove FloatBobOffsets[], since it's just a mini-finesine[] table multiplied by 8.

SVN r3753 (trunk)
This commit is contained in:
Randy Heit 2012-07-11 02:50:13 +00:00
commit ba00e3a185
12 changed files with 36 additions and 63 deletions

View file

@ -134,8 +134,8 @@ DEFINE_ACTION_FUNCTION(AActor, A_FiredChase)
if (self->threshold) self->threshold--;
// Float up and down
self->z += FloatBobOffsets[weaveindex];
self->special1 = (weaveindex+2)&63;
self->z += finesine[weaveindex << BOBTOFINESHIFT] * 8;
self->special1 = (weaveindex + 2) & 63;
// Ensure it stays above certain height
if (self->z < self->floorz + (64*FRACUNIT))