From ae21a9b9f66d5574206f2c2611abcdf27bf4c19d Mon Sep 17 00:00:00 2001 From: ApoC Date: Mon, 8 Jun 2009 00:45:04 +0200 Subject: [PATCH] [7977] Fixed PointMovementGenerator to correctly set UNIT_STAT_MOVING on initialize. This may fix problem with creatures moving after death in connection with AssistanceMovementGenerator Signed-off-by: ApoC --- src/game/PointMovementGenerator.cpp | 1 + src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/PointMovementGenerator.cpp b/src/game/PointMovementGenerator.cpp index 935b5f2c7..7e225d0a8 100644 --- a/src/game/PointMovementGenerator.cpp +++ b/src/game/PointMovementGenerator.cpp @@ -28,6 +28,7 @@ template void PointMovementGenerator::Initialize(T &unit) { unit.StopMoving(); + owner.addUnitState(UNIT_STAT_MOVING); Traveller traveller(unit); i_destinationHolder.SetDestination(traveller,i_x,i_y,i_z); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index d73cabe61..a3530270d 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7976" + #define REVISION_NR "7977" #endif // __REVISION_NR_H__ -- 2.11.4.GIT