Skip to content

Commit

Permalink
WAGE: Marked some methods as static, const'ness
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Feb 14, 2016
1 parent 9c8d035 commit c5a01f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions engines/wage/combat.cpp
Expand Up @@ -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)
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion engines/wage/wage.h
Expand Up @@ -176,7 +176,7 @@ class WageEngine : public Engine {
bool handleAttack(Obj *weapon);

void printPlayerCondition(Chr *player);
const char *getPercentMessage(double percent);
const char *const getPercentMessage(double percent);

public:
Common::RandomSource *_rnd;
Expand Down

0 comments on commit c5a01f3

Please sign in to comment.