Fix some issues in battle

This commit is contained in:
Eduardo Bart
2012-08-03 02:58:48 -03:00
parent f397e6319c
commit 325b711181
4 changed files with 18 additions and 7 deletions

View File

@@ -477,7 +477,7 @@ void Game::walk(Otc::Direction direction)
// check walk to another floor (e.g: when above 3 parcels)
else {
// check if can walk to a lower floor
auto canChangeFloorDown = [&] {
auto canChangeFloorDown = [&]() -> bool {
Position pos = toPos;
if(!pos.down())
return false;
@@ -488,7 +488,7 @@ void Game::walk(Otc::Direction direction)
};
// check if can walk to a higher floor
auto canChangeFloorUp = [&] {
auto canChangeFloorUp = [&]() -> bool {
TilePtr fromTile = m_localPlayer->getTile();
if(!fromTile || !fromTile->hasElevation(3))
return false;