From b474de4a54c9b1d4d863971e40b807588d554436 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 24 Aug 2012 22:48:35 +0300 Subject: replace defines to consts. --- src/actorsprite.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/actorsprite.cpp') diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp index 4debab9e8..5e53febcd 100644 --- a/src/actorsprite.cpp +++ b/src/actorsprite.cpp @@ -42,7 +42,7 @@ #include "debug.h" -#define EFFECTS_FILE "effects.xml" +static const char *const EFFECTS_FILE = "effects.xml"; ImageSet *ActorSprite::targetCursorImages[2][NUM_TC]; SimpleAnimation *ActorSprite::targetCursor[2][NUM_TC]; @@ -188,8 +188,7 @@ static EffectDescription *getEffectDescription(int effectId) if (!root || !xmlNameEqual(root, "being-effects")) { - logger->log1("Error loading being effects file: " - EFFECTS_FILE); + logger->log1("Error loading being effects file"); return nullptr; } @@ -238,7 +237,7 @@ void ActorSprite::setStatusEffect(int index, bool active) void ActorSprite::setStatusEffectBlock(int offset, uint16_t newEffects) { - for (int i = 0; i < STATUS_EFFECTS; i++) + for (unsigned i = 0; i < STATUS_EFFECTS; i++) { int index = StatusEffect::blockEffectIndexToEffectIndex(offset + i); -- cgit v1.2.3-70-g09d2