Skip to content

Commit

Permalink
XEEN: Method rename and compilation warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Feb 26, 2015
1 parent b4c8c81 commit 4191335
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions engines/xeen/combat.cpp
Expand Up @@ -621,7 +621,7 @@ void Combat::monstersAttack() {

for (int idx = 0; idx < 36; ++idx) {
if (_gmonHit[idx] != -1)
attackMonster(_gmonHit[idx]);
doMonsterTurn(_gmonHit[idx]);
}

_monstersAttacking = false;
Expand Down Expand Up @@ -770,7 +770,7 @@ void Combat::monsterOvercome() {
}
}

void Combat::attackMonster(int monsterId) {
void Combat::doMonsterTurn(int monsterId) {
Interface &intf = *_vm->_interface;
Map &map = *_vm->_map;
Party &party = *_vm->_party;
Expand Down Expand Up @@ -808,7 +808,7 @@ void Combat::attackMonster(int monsterId) {
intf.draw3d(true);
intf.draw3d(true);

File f(monsterData._attackVoc);
File f(Common::String::format("%s.voc", monsterData._attackVoc.c_str()));
sound.playSample(&f, 0);
bool flag = false;

Expand Down Expand Up @@ -1073,7 +1073,7 @@ void Combat::setupCombatParty() {
void Combat::setSpeedTable() {
Map &map = *_vm->_map;
Common::Array<int> charSpeeds;
bool hasSpeed = _whosSpeed != -1 && _whosSpeed < _speedTable.size();
bool hasSpeed = _whosSpeed != -1 && _whosSpeed < (int)_speedTable.size();
int oldSpeed = hasSpeed ? _speedTable[_whosSpeed] : 0;

// Set up speeds for party membres
Expand Down
2 changes: 1 addition & 1 deletion engines/xeen/combat.h
Expand Up @@ -158,7 +158,7 @@ class Combat {

void moveMonster(int monsterId, const Common::Point &moveDelta);

void attackMonster(int monsterId);
void doMonsterTurn(int monsterId);

void endAttack();

Expand Down
2 changes: 1 addition & 1 deletion engines/xeen/interface.cpp
Expand Up @@ -2218,7 +2218,7 @@ void Interface::nextChar() {
break;
} else {
// It's a monster's turn to attack
combat.attackMonster(0);
combat.doMonsterTurn(0);
if (!party._dead) {
party.checkPartyDead();
if (party._dead)
Expand Down

0 comments on commit 4191335

Please sign in to comment.