Skip to content

Commit

Permalink
WAGE: Indentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Feb 14, 2016
1 parent e83a0ce commit 13c979a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
46 changes: 23 additions & 23 deletions engines/wage/combat.cpp
Expand Up @@ -147,30 +147,30 @@ void WageEngine::performCombatAction(Chr *npc, Chr *player) {

int token = hat.drawToken();
switch (token) {
case kTokWeapons:
// TODO: I think the monster should choose the "best" weapon.
performAttack(npc, player, weapons->operator[](_rnd->getRandomNumber(weapons->size() - 1)));
case kTokWeapons:
// TODO: I think the monster should choose the "best" weapon.
performAttack(npc, player, weapons->operator[](_rnd->getRandomNumber(weapons->size() - 1)));
break;
case kTokMagic:
// TODO: I think the monster should choose the "best" magic.
performMagic(npc, player, magics->operator[](_rnd->getRandomNumber(magics->size() - 1)));
break;
case kTokRun:
performMove(npc, validMoves);
break;
case kTokOffer:
performOffer(npc, player);
break;
case kTokNone:
break;
default:
{
int cnt = 0;
for (ObjList::const_iterator it = objs->begin(); it != objs->end(); ++it, ++cnt)
if (cnt == token)
performTake(npc, *it);
break;
case kTokMagic:
// TODO: I think the monster should choose the "best" magic.
performMagic(npc, player, magics->operator[](_rnd->getRandomNumber(magics->size() - 1)));
break;
case kTokRun:
performMove(npc, validMoves);
break;
case kTokOffer:
performOffer(npc, player);
break;
case kTokNone:
break;
default:
{
int cnt = 0;
for (ObjList::const_iterator it = objs->begin(); it != objs->end(); ++it, ++cnt)
if (cnt == token)
performTake(npc, *it);
break;
}
}
}

delete weapons;
Expand Down
2 changes: 1 addition & 1 deletion engines/wage/entities.h
Expand Up @@ -333,7 +333,7 @@ class Scene : public Designed {

class Sound {
public:
Sound(Common::String name, Common::SeekableReadStream *data) : _name(name), _data(data) {}
Sound(Common::String name, Common::SeekableReadStream *data) : _name(name), _data(data) {}
~Sound() { }

Common::String _name;
Expand Down

0 comments on commit 13c979a

Please sign in to comment.