aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/actor.cpp
diff options
context:
space:
mode:
authorVladimir Menshakov2010-01-01 12:14:25 +0000
committerVladimir Menshakov2010-01-01 12:14:25 +0000
commit68f4e0f296f25c9a326d53195fc2ea395d9a7d68 (patch)
treeb54fa3c128714530b2a8bfaec1776eeb2c6f3f85 /engines/teenagent/actor.cpp
parent82c890419855bf9ec1a0dec9f97442fb4d76279f (diff)
downloadscummvm-rg350-68f4e0f296f25c9a326d53195fc2ea395d9a7d68.tar.gz
scummvm-rg350-68f4e0f296f25c9a326d53195fc2ea395d9a7d68.tar.bz2
scummvm-rg350-68f4e0f296f25c9a326d53195fc2ea395d9a7d68.zip
minor sizeof cleanup
svn-id: r46816
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 ee35950187..df2f150086 100644
--- a/engines/teenagent/actor.cpp
+++ b/engines/teenagent/actor.cpp
@@ -72,13 +72,13 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi
case kActorLeft:
case kActorRight:
if (render_head) {
- if (head_index >= sizeof(frames_head_left_right))
+ if (head_index >= ARRAYSIZE(frames_head_left_right))
head_index = 0;
head = frames + frames_head_left_right[head_index];
++head_index;
}
- if (index >= sizeof(frames_left_right))
+ if (index >= ARRAYSIZE(frames_left_right))
index = 0;
s = frames + frames_left_right[index];
dx = 11;
@@ -86,13 +86,13 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi
break;
case kActorUp:
if (render_head) {
- if (head_index >= sizeof(frames_head_up))
+ if (head_index >= ARRAYSIZE(frames_head_up))
head_index = 0;
head = frames + frames_head_up[head_index];
++head_index;
}
- if (index >= sizeof(frames_up))
+ if (index >= ARRAYSIZE(frames_up))
index = 0;
s = frames + frames_up[index];
dx = 11;
@@ -100,13 +100,13 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi
break;
case kActorDown:
if (render_head) {
- if (head_index >= sizeof(frames_head_down))
+ if (head_index >= ARRAYSIZE(frames_head_down))
head_index = 0;
head = frames + frames_head_down[head_index];
++head_index;
}
- if (index >= sizeof(frames_down))
+ if (index >= ARRAYSIZE(frames_down))
index = 0;
s = frames + frames_down[index];
dx = 11;