aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent
diff options
context:
space:
mode:
authorMax Horn2009-09-04 20:10:32 +0000
committerMax Horn2009-09-04 20:10:32 +0000
commit340c9481333cbe3be7d0e6a6ab6a61cf53708e12 (patch)
tree620ee6cd23d3c9bfd26df6e16eb07803aaa44a7a /engines/teenagent
parent4ae8f43be3394927a9b8b71dfaaaff4a87aa2f69 (diff)
downloadscummvm-rg350-340c9481333cbe3be7d0e6a6ab6a61cf53708e12.tar.gz
scummvm-rg350-340c9481333cbe3be7d0e6a6ab6a61cf53708e12.tar.bz2
scummvm-rg350-340c9481333cbe3be7d0e6a6ab6a61cf53708e12.zip
TEEN: Made some stuff const
svn-id: r43947
Diffstat (limited to 'engines/teenagent')
-rw-r--r--engines/teenagent/actor.cpp6
-rw-r--r--engines/teenagent/music.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/teenagent/actor.cpp b/engines/teenagent/actor.cpp
index 1a325e3028..d2d628b072 100644
--- a/engines/teenagent/actor.cpp
+++ b/engines/teenagent/actor.cpp
@@ -28,9 +28,9 @@
namespace TeenAgent {
void Actor::render(Graphics::Surface * surface, const Common::Point & position, uint8 orientation, int delta_frame) {
- uint8 frames_left_right[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
- uint8 frames_up[] = {18, 19, 20, 21, 22, 23, 24, 25, };
- uint8 frames_down[] = {10, 11, 12, 13, 14, 15, 16, 17, };
+ const uint8 frames_left_right[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
+ const uint8 frames_up[] = {18, 19, 20, 21, 22, 23, 24, 25, };
+ const uint8 frames_down[] = {10, 11, 12, 13, 14, 15, 16, 17, };
Surface * s = NULL;
diff --git a/engines/teenagent/music.cpp b/engines/teenagent/music.cpp
index 61c469838e..45df21b6f0 100644
--- a/engines/teenagent/music.cpp
+++ b/engines/teenagent/music.cpp
@@ -28,7 +28,7 @@
namespace TeenAgent {
-static uint32 noteToPeriod[3][12] = {
+static const uint32 noteToPeriod[3][12] = {
{855, 807, 761, 720, 678, 640, 604, 569, 537, 508, 480, 453},
{428, 404, 381, 360, 338, 320, 301, 285, 269, 254, 239, 226},
{214, 201, 189, 179, 170, 160, 151, 143, 135, 127, 120, 113}