i'm porting over my exits snippet to smaugfuss. i get a warning from cygwin on it.
here's the code from that area. i tried puttin parenthesis in other places, but i'm just not getting it. i hvaen't slept much lately so that's probably it.
any ideas?
act_info.c: In function `do_exits':
act_info.c:1757: warning: suggest parentheses around && within ||
here's the code from that area. i tried puttin parenthesis in other places, but i'm just not getting it. i hvaen't slept much lately so that's probably it.
for ( pexit = ch->in_room->first_exit; pexit; pexit = pexit->next )
{
if ( pexit->to_room
|| IS_SET(pexit->exit_info, EX_CLOSED)
&& (!IS_SET(pexit->exit_info, EX_WINDOW)
|| IS_SET(pexit->exit_info, EX_ISDOOR))
&& !IS_SET(pexit->exit_info, EX_HIDDEN) )
{
any ideas?