diff options
author | Eugene Sandulenko | 2016-02-14 17:06:07 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-02-14 17:13:21 +0100 |
commit | c5a01f3f38aae04cf114db68c27aaadfbe558a88 (patch) | |
tree | 01406f3af87dce15a775161c355603dcc4c58766 | |
parent | 9c8d0352ad5078606c1b854a599e964c1d4d1ad2 (diff) | |
download | scummvm-rg350-c5a01f3f38aae04cf114db68c27aaadfbe558a88.tar.gz scummvm-rg350-c5a01f3f38aae04cf114db68c27aaadfbe558a88.tar.bz2 scummvm-rg350-c5a01f3f38aae04cf114db68c27aaadfbe558a88.zip |
WAGE: Marked some methods as static, const'ness
-rw-r--r-- | engines/wage/combat.cpp | 4 | ||||
-rw-r--r-- | engines/wage/wage.h | 2 |
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; |