- Fixed: Some missile spawning functions ignored the FastSpeed setting.

- Fixed: P_CheckSwitchRange tried to access a line's backsector without
  checking if it is valid.
- Fixed: Fast projectile could not be frozen by the Time freezer.
- Added several new ACS functions: GetActorMomX/Y/Z, GetActorViewHeight,
  SetActivator, SetActivatorToTarget.


SVN r1578 (trunk)
This commit is contained in:
Christoph Oelckers 2009-05-11 22:16:41 +00:00
commit 912abc144e
5 changed files with 104 additions and 24 deletions

View file

@ -1,6 +1,7 @@
#include "a_sharedglobal.h"
#include "p_local.h"
#include "g_level.h"
IMPLEMENT_CLASS(AFastProjectile)
@ -26,6 +27,16 @@ void AFastProjectile::Tick ()
PrevY = y;
PrevZ = z;
if (!(flags5 & MF5_NOTIMEFREEZE))
{
//Added by MC: Freeze mode.
if (bglobal.freeze || level.flags2 & LEVEL2_FROZEN)
{
return;
}
}
// [RH] Ripping is a little different than it was in Hexen
FCheckPosition tm(!!(flags2 & MF2_RIP));