From 8a8414c0e7e258e6cec0bd5dd748d1585389b7bc Mon Sep 17 00:00:00 2001 From: mateuszb Date: Sat, 9 Jun 2007 20:42:53 +0000 Subject: [PATCH] =?UTF-8?q?naprawienie=20b=C5=82=C4=99d=C3=B3w=20wczytywan?= =?UTF-8?q?ia=20informacji=20o=20dost=C4=99pno=C5=9Bci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CAmbarCendamo.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/CAmbarCendamo.cpp b/CAmbarCendamo.cpp index 8569f6369..8968b5e7b 100644 --- a/CAmbarCendamo.cpp +++ b/CAmbarCendamo.cpp @@ -273,11 +273,11 @@ void CAmbarCendamo::deh3m() for(i; iheroh->heroes.size()) { - if(c == c|intPow(2, yy)) + if(c == (c|((unsigned char)intPow(2, yy)))) CGameInfo::mainObj->heroh->heroes[(i-ist)*8+yy].isAllowed = true; else CGameInfo::mainObj->heroh->heroes[(i-ist)*8+yy].isAllowed = false; @@ -291,11 +291,11 @@ void CAmbarCendamo::deh3m() for(i; iarth->artifacts.size()) { - if(c == c|intPow(2, yy)) + if(c != (c|((unsigned char)intPow(2, yy)))) CGameInfo::mainObj->arth->artifacts[(i-ist)*8+yy].isAllowed = true; else CGameInfo::mainObj->arth->artifacts[(i-ist)*8+yy].isAllowed = false; @@ -308,11 +308,11 @@ void CAmbarCendamo::deh3m() for(i; ispellh->spells.size()) { - if(c == c|intPow(2, yy)) + if(c != (c|((unsigned char)intPow(2, yy)))) CGameInfo::mainObj->spellh->spells[(i-ist)*8+yy].isAllowed = true; else CGameInfo::mainObj->spellh->spells[(i-ist)*8+yy].isAllowed = false; @@ -325,11 +325,11 @@ void CAmbarCendamo::deh3m() for(i; iabilh->abilities.size()) { - if(c == c|intPow(2, yy)) + if(c != (c|((unsigned char)intPow(2, yy)))) CGameInfo::mainObj->abilh->abilities[(i-ist)*8+yy].isAllowed = true; else CGameInfo::mainObj->abilh->abilities[(i-ist)*8+yy].isAllowed = false;