aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2013-09-07 00:41:39 +0200
committerStrangerke2013-09-07 00:41:39 +0200
commit73afd0d8e1771110a6e7b3744acacd00fc6ca1b6 (patch)
treed4281cc3b674178e1e8f8805e30987f719b3fa7b
parentc537d2f1e5c96e29622d7c9ae272c2a9e7b8a1a8 (diff)
downloadscummvm-rg350-73afd0d8e1771110a6e7b3744acacd00fc6ca1b6.tar.gz
scummvm-rg350-73afd0d8e1771110a6e7b3744acacd00fc6ca1b6.tar.bz2
scummvm-rg350-73afd0d8e1771110a6e7b3744acacd00fc6ca1b6.zip
AVALANCHE: Fix some more warnings
-rw-r--r--engines/avalanche/acci2.cpp22
-rw-r--r--engines/avalanche/acci2.h3
2 files changed, 10 insertions, 15 deletions
diff --git a/engines/avalanche/acci2.cpp b/engines/avalanche/acci2.cpp
index 64c2d67b8b..2df42e4542 100644
--- a/engines/avalanche/acci2.cpp
+++ b/engines/avalanche/acci2.cpp
@@ -192,17 +192,6 @@ const Acci::VocabEntry Acci::kVocabulary[kParserWordsNum] = {
{255, "THIS"}, {255, "SENTINEL"} // for "Ken SENT Me"
};
-const char Acci::kWhat[] = "That's not possible!";
-
-const Acci::RankType Acci::kRanks[9] = {
- {0, "Beginner"}, {10, "Novice"},
- {20, "Improving"}, {35, "Not bad"},
- {50, "Passable"}, {65, "Good"},
- {80, "Experienced"}, {108, "The BEST!"},
- {32767, "copyright'93"}
-};
-
-
Acci::Acci(AvalancheEngine *vm) {
_vm = vm;
}
@@ -251,6 +240,14 @@ void Acci::replace(Common::String oldChars, byte newChar) {
}
Common::String Acci::rank() {
+ static const RankType kRanks[9] = {
+ {0, "Beginner"}, {10, "Novice"},
+ {20, "Improving"}, {35, "Not bad"},
+ {50, "Passable"}, {65, "Good"},
+ {80, "Experienced"}, {108, "The BEST!"},
+ {32767, "copyright'93"}
+ };
+
for (byte i = 0; i < 8; i++) {
if ((_vm->_gyro->_dna._score >= kRanks[i]._score) && (_vm->_gyro->_dna._score < kRanks[i + 1]._score)) {
return kRanks[i]._title;
@@ -1304,7 +1301,8 @@ void Acci::heyThanks() {
* @remarks Originally called 'do_that'
*/
void Acci::doThat() {
- const Common::String booze[] = {"Bitter", "GIED", "Whisky", "Cider", "", "", "", "Mead"};
+ static const Common::String booze[] = {"Bitter", "GIED", "Whisky", "Cider", "", "", "", "Mead"};
+ static const char kWhat[] = "That's not possible!";
if (_thats == Common::String(kNothing)) {
if (!_thats.empty())
diff --git a/engines/avalanche/acci2.h b/engines/avalanche/acci2.h
index 2f036630c4..9004fc6ad5 100644
--- a/engines/avalanche/acci2.h
+++ b/engines/avalanche/acci2.h
@@ -82,9 +82,6 @@ private:
Common::String _title;
};
- static const RankType kRanks[9];
- static const char kWhat[];
-
Common::String _thats;
Common::String _unknown;