diff options
author | Max Horn | 2006-10-15 01:24:17 +0000 |
---|---|---|
committer | Max Horn | 2006-10-15 01:24:17 +0000 |
commit | 2888110b3ccea294bed469aa2a3dbb522ddc909b (patch) | |
tree | 37a42396f3892f26292929d35f5e55267c9d4137 /engines/scumm/insane/insane.cpp | |
parent | 018d5e350c396cadb2abff39acbf9ba47a3d4010 (diff) | |
download | scummvm-rg350-2888110b3ccea294bed469aa2a3dbb522ddc909b.tar.gz scummvm-rg350-2888110b3ccea294bed469aa2a3dbb522ddc909b.tar.bz2 scummvm-rg350-2888110b3ccea294bed469aa2a3dbb522ddc909b.zip |
Turning various static tables into static const
svn-id: r24323
Diffstat (limited to 'engines/scumm/insane/insane.cpp')
-rw-r--r-- | engines/scumm/insane/insane.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/insane/insane.cpp b/engines/scumm/insane/insane.cpp index 919baa143b..20c663a3fe 100644 --- a/engines/scumm/insane/insane.cpp +++ b/engines/scumm/insane/insane.cpp @@ -877,7 +877,7 @@ void Insane::smush_rewindCurrentSan(int arg_0, int arg_4, int arg_8) { } int32 Insane::weaponMaxRange(int32 actornum) { - static int map[8] = {135, 125, 130, 125, 120, 104, 104, 104}; + static const int map[8] = {135, 125, 130, 125, 120, 104, 104, 104}; if (_actor[actornum].weapon == -1) return 104; @@ -886,7 +886,7 @@ int32 Insane::weaponMaxRange(int32 actornum) { } int32 Insane::weaponMinRange(int32 actornum) { - static int map[8] = {80, 40, 80, 40, 80, 80, 40, 50}; + static const int map[8] = {80, 40, 80, 40, 80, 80, 40, 50}; if (_actor[actornum].weapon == -1) return 40; @@ -895,7 +895,7 @@ int32 Insane::weaponMinRange(int32 actornum) { } int32 Insane::weaponDamage(int32 actornum) { - static int map[8] = {20, 300, 25, 40, 15, 10, 10, 5}; + static const int map[8] = {20, 300, 25, 40, 15, 10, 10, 5}; if (_actor[actornum].weapon == -1) return 10; |