aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wage/combat.cpp4
-rw-r--r--engines/wage/wage.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/wage/combat.cpp b/engines/wage/combat.cpp
index 7a9363689c..9581c90f0b 100644
--- a/engines/wage/combat.cpp
+++ b/engines/wage/combat.cpp
@@ -177,7 +177,7 @@ void WageEngine::performCombatAction(Chr *npc, Chr *player) {
delete magics;
}
-const char *targets[] = { "head", "chest", "side" };
+static const char *const targets[] = { "head", "chest", "side" };
void WageEngine::performAttack(Chr *attacker, Chr *victim, Obj *weapon) {
if (_world->_weaponMenuDisabled)
@@ -883,7 +883,7 @@ bool WageEngine::handleAttack(Obj *weapon) {
return true;
}
-const char *WageEngine::getPercentMessage(double percent) {
+const char *const WageEngine::getPercentMessage(double percent) {
if (percent < 0.40) {
return "very bad";
} else if (percent < 0.55) {
diff --git a/engines/wage/wage.h b/engines/wage/wage.h
index 65bfa9109a..42749dc311 100644
--- a/engines/wage/wage.h
+++ b/engines/wage/wage.h
@@ -176,7 +176,7 @@ public:
bool handleAttack(Obj *weapon);
void printPlayerCondition(Chr *player);
- const char *getPercentMessage(double percent);
+ const char *const getPercentMessage(double percent);
public:
Common::RandomSource *_rnd;