diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-27 22:55:37 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-27 22:55:37 +0000 |
commit | e7a3a5bb9df0609a76323b8e2546a7a02fcebc81 (patch) | |
tree | db87045389c8985cf3add6bda2992be43a0a2a51 /src/object.cpp | |
parent | 1e564be8f7a7339422f48ebbf98c5fb14544a96d (diff) | |
download | manaserv-e7a3a5bb9df0609a76323b8e2546a7a02fcebc81.tar.gz manaserv-e7a3a5bb9df0609a76323b8e2546a7a02fcebc81.tar.bz2 manaserv-e7a3a5bb9df0609a76323b8e2546a7a02fcebc81.tar.xz manaserv-e7a3a5bb9df0609a76323b8e2546a7a02fcebc81.zip |
Added a Controller class meant to implement behaviour loosely coupled to the
actual being. Used it to control 10 testing maggots that are now randomly
walking around.
Diffstat (limited to 'src/object.cpp')
-rw-r--r-- | src/object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object.cpp b/src/object.cpp index b20fa7dc..ddbd10c7 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -67,8 +67,8 @@ void MovingObject::move() int vecX = 0, vecY = 0, cost = 0; for (std::list<PATH_NODE>::const_iterator it = path.begin(), - it_end = path.end(); it != it_end; ++it) { - + it_end = path.end(); it != it_end; ++it) + { int tileNX = it->x, tileNY = it->y; assert((tileNX != tileCX || tileNY != tileCY) && (tileNX != tileDX || tileNY != tileDY)); |