aboutsummaryrefslogtreecommitdiff
path: root/saga/actor.h
diff options
context:
space:
mode:
Diffstat (limited to 'saga/actor.h')
-rw-r--r--saga/actor.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/saga/actor.h b/saga/actor.h
index f7939c7c0b..babc847ef8 100644
--- a/saga/actor.h
+++ b/saga/actor.h
@@ -234,12 +234,17 @@ public:
int framesCount; // Actor's frames count
int frameListResourceId; // Actor's frame list resource id
-// int walkPath[ACTOR_STEPS_MAX]; //todo: will gone
- int walkStepsCount;
+ //int walkPath[ACTOR_STEPS_MAX]; //todo: will gone
+
+ int tileDirectionsAlloced;
+ byte *tileDirections;
+
int walkStepsAlloced;
- int walkStepIndex;
Point *walkStepsPoints;
+ int walkStepsCount;
+ int walkStepIndex;
+
Location finalTarget;
Location partialTarget;
int walkFrameSequence;
@@ -260,11 +265,13 @@ public:
ActorData() {
memset(this, 0xFE, sizeof(*this));
walkStepsPoints = NULL;
- walkStepsAlloced = walkStepsCount = walkStepIndex = 0;
+ tileDirectionsAlloced = walkStepsAlloced = walkStepsCount = walkStepIndex = 0;
+ tileDirections = NULL;
memset(&spriteList, 0, sizeof(spriteList));
}
~ActorData() {
free(frames);
+ free(tileDirections);
free(walkStepsPoints);
spriteList.freeMem();
}