- fixed: Only ActorMovers should go into STAT_ACTORMOVER, not all PathFollowers.

SVN r2078 (trunk)
This commit is contained in:
Christoph Oelckers 2010-01-02 12:15:47 +00:00
parent efb420228c
commit 840fc6bfa3
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,5 @@
January 2, 2010 (Changes by Graf Zahl) January 2, 2010 (Changes by Graf Zahl)
- fixed: Only ActorMovers should go into STAT_ACTORMOVER, not all PathFollowers.
- fixed: SBARINFO's DrawGem command accepted a size value of 0 and divided - fixed: SBARINFO's DrawGem command accepted a size value of 0 and divided
by it. Reinstated the old '+1' this command had in the old code. by it. Reinstated the old '+1' this command had in the old code.
- fixed: The floor waggle code used FloatBobOffsets as sine table but this - fixed: The floor waggle code used FloatBobOffsets as sine table but this

View File

@ -213,7 +213,6 @@ void APathFollower::BeginPlay ()
Super::BeginPlay (); Super::BeginPlay ();
PrevNode = CurrNode = NULL; PrevNode = CurrNode = NULL;
bActive = false; bActive = false;
ChangeStatNum(STAT_ACTORMOVER);
} }
void APathFollower::PostBeginPlay () void APathFollower::PostBeginPlay ()
@ -508,6 +507,7 @@ class AActorMover : public APathFollower
{ {
DECLARE_CLASS (AActorMover, APathFollower) DECLARE_CLASS (AActorMover, APathFollower)
public: public:
void BeginPlay();
void PostBeginPlay (); void PostBeginPlay ();
void Activate (AActor *activator); void Activate (AActor *activator);
void Deactivate (AActor *activator); void Deactivate (AActor *activator);
@ -517,6 +517,11 @@ protected:
IMPLEMENT_CLASS (AActorMover) IMPLEMENT_CLASS (AActorMover)
void AActorMover::BeginPlay()
{
ChangeStatNum(STAT_ACTORMOVER);
}
void AActorMover::PostBeginPlay () void AActorMover::PostBeginPlay ()
{ {
Super::PostBeginPlay (); Super::PostBeginPlay ();