aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/actor.cpp
diff options
context:
space:
mode:
authorVladimir Menshakov2009-12-03 09:12:20 +0000
committerVladimir Menshakov2009-12-03 09:12:20 +0000
commit3b7a2dad3ddee4220ef84744be3986d05e47c224 (patch)
treeeb05454e95eaf4a8d3f6b52a21fcfaa7dc6e8675 /engines/teenagent/actor.cpp
parent2dcbfeb31a22f468dc174598f3201684283fcd58 (diff)
downloadscummvm-rg350-3b7a2dad3ddee4220ef84744be3986d05e47c224.tar.gz
scummvm-rg350-3b7a2dad3ddee4220ef84744be3986d05e47c224.tar.bz2
scummvm-rg350-3b7a2dad3ddee4220ef84744be3986d05e47c224.zip
added original-like pathfinding.
svn-id: r46244
Diffstat (limited to 'engines/teenagent/actor.cpp')
-rw-r--r--engines/teenagent/actor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/teenagent/actor.cpp b/engines/teenagent/actor.cpp
index 49f283f48c..77bec914c5 100644
--- a/engines/teenagent/actor.cpp
+++ b/engines/teenagent/actor.cpp
@@ -69,8 +69,8 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi
}
int dx, dy;
switch (orientation) {
- case Object::kActorLeft:
- case Object::kActorRight:
+ case kActorLeft:
+ case kActorRight:
if (render_head) {
if (head_index >= sizeof(frames_head_left_right))
head_index = 0;
@@ -84,7 +84,7 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi
dx = 11;
dy = 62;
break;
- case Object::kActorUp:
+ case kActorUp:
if (render_head) {
if (head_index >= sizeof(frames_head_up))
head_index = 0;
@@ -98,7 +98,7 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi
dx = 11;
dy = 62;
break;
- case Object::kActorDown:
+ case kActorDown:
if (render_head) {
if (head_index >= sizeof(frames_head_down))
head_index = 0;
@@ -137,10 +137,10 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi
if (yp + clip.top + clip.height() > 200)
yp = 200 - clip.top - clip.height();
- dirty = s->render(surface, xp, yp + clip.top, orientation == Object::kActorLeft, clip, zoom);
+ dirty = s->render(surface, xp, yp + clip.top, orientation == kActorLeft, clip, zoom);
if (head != NULL)
- dirty.extend(head->render(surface, xp, yp, orientation == Object::kActorLeft, Common::Rect(), zoom));
+ dirty.extend(head->render(surface, xp, yp, orientation == kActorLeft, Common::Rect(), zoom));
return dirty;
}