1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-05 13:04:54 +02:00

Fixed one bad condition; and a compile fix.

This commit is contained in:
Frank Zago 2011-10-06 00:27:27 +00:00
parent 583aca8912
commit 16c23bbf4e
2 changed files with 2 additions and 2 deletions

View File

@ -393,7 +393,7 @@ int BattleInfo::getAvaliableHex(TCreature creID, bool attackerOwned, int initial
bool twoHex = VLC->creh->creatures[creID]->isDoubleWide();
bool flying = VLC->creh->creatures[creID]->isFlying();// vstd::contains(VLC->creh->creatures[creID]->bonuses, Bonus::FLYING);
getAccessibilityMap(ac, twoHex, attackerOwned, true, occupyable, flying);
for (int g = pos; -1 < g < BFIELD_SIZE; )
for (int g = pos; (-1 < g) && (g < BFIELD_SIZE); )
{
if ((g % BFIELD_WIDTH != 0) && (g % BFIELD_WIDTH != BFIELD_WIDTH-1) && BattleInfo::isAccessible (g, ac, twoHex, attackerOwned, flying, true))
{

View File

@ -1504,7 +1504,7 @@ struct BattleStackAdded : public CPackForClient //3017
struct BattleSetStackProperty : public CPackForClient //3018
{
struct BattleSetStackProperty(){type = 3018;};
BattleSetStackProperty(){type = 3018;};
enum BattleStackProperty {CASTS, CURRENT_SPELL};