From 3b7a2dad3ddee4220ef84744be3986d05e47c224 Mon Sep 17 00:00:00 2001 From: Vladimir Menshakov Date: Thu, 3 Dec 2009 09:12:20 +0000 Subject: added original-like pathfinding. svn-id: r46244 --- engines/teenagent/actor.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/teenagent/actor.cpp') 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; } -- cgit v1.2.3