At 11:26 2007-03-22, you wrote:
>Hey all
>K this is the problem.. I have a CaveArray[][]made up of the
>following struct. when i refer to the bool members of it to test if
>it is true or false it always skips the code following.
>
>struct cave {              //template of each cave
>         bool North ;
>         bool South ;
>         bool East ;
>         bool West ;
>         bool Wumpus ;
>         bool NewWumpus;
>         bool Hole ;
>         bool Arrows ;
>         bool Lives ;
>         bool CaveFound;
>
>
>
>} CaveArray [IROW][ICOL] ;
>
>e.g.
>if ( Maze[iX][iY].North == true )
>{
>                 if ( Maze[iX-1][iY].Hole == true )
>                 //even though this expression is true it never goes
>into the following code it just skips on.. ive put watches on all
>the CaveArray and stepped through the code and then the expression
>is highlighted it says its true but still skips the code anyway
>                 {
>                         bHole = true;
>                 }
>}
>iX and iY are always within the array size
>
>any ideas why this is??

none, but I'm wondering why you don't write what you mean instead of 
that if........
bHole |= Maze[iX-1][iY].Hole;



>Cheers
>g
>
>
>
>To unsubscribe, send a blank message to 
><mailto:[EMAIL PROTECTED]>.
>Yahoo! Groups Links
>
>
>

Victor A. Wagner Jr.      http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law" 

Reply via email to