diff options
author | Andrew Kurushin | 2005-01-06 22:22:20 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-01-06 22:22:20 +0000 |
commit | 198d85eecd972483dc4a9bf2b792e31ef3dc6f71 (patch) | |
tree | f26f51332cdd7eb1b739e682e294dea1bbac9681 /saga/actor.h | |
parent | 59a93737dbd9b0f60f8545b0a0a23ceb75c03ab7 (diff) | |
download | scummvm-rg350-198d85eecd972483dc4a9bf2b792e31ef3dc6f71.tar.gz scummvm-rg350-198d85eecd972483dc4a9bf2b792e31ef3dc6f71.tar.bz2 scummvm-rg350-198d85eecd972483dc4a9bf2b792e31ef3dc6f71.zip |
small fixes to previous
svn-id: r16465
Diffstat (limited to 'saga/actor.h')
-rw-r--r-- | saga/actor.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/saga/actor.h b/saga/actor.h index 8c5fff49e6..97b1625100 100644 --- a/saga/actor.h +++ b/saga/actor.h @@ -115,11 +115,12 @@ enum ActorFlagsEx { enum PathCellType { kPathCellEmpty = -1, + //kDirUp = 0 .... kDirUpLeft = 7 kPathCellBarrier = 0x57 }; struct PathDirectionData { - int direction; + int8 direction; int x; int y; }; @@ -319,13 +320,13 @@ private: return !((testPoint.x < 0) || (testPoint.x >= _xCellCount) || (testPoint.y < 0) || (testPoint.y >= _yCellCount)); } - void setPathCell(const Point &testPoint, int value) { + void setPathCell(const Point &testPoint, int8 value) { if (!validPathCellPoint(testPoint)) { error("Actor::setPathCell wrong point"); } _pathCell[testPoint.x + testPoint.y * _xCellCount] = value; } - int getPathCell(const Point &testPoint) { + int8 getPathCell(const Point &testPoint) { if (!validPathCellPoint(testPoint)) { error("Actor::getPathCell wrong point"); } @@ -351,7 +352,7 @@ private: //path stuff Rect _barrierList[ACTOR_BARRIERS_MAX]; int _barrierCount; - int *_pathCell; + int8 *_pathCell; int _xCellCount; int _yCellCount; |