if (pRoom->exit[DIR_NORTH] && pRoom->exit[DIR_NORTH]->u1.to_room)
...

only the first one should be necessary, but I usually throw the second one
in just to be sure.

----- Original Message ----- 
From: "Cyhawk" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, November 23, 2003 8:13 AM
Subject: If statement for exits/doors


> Ok, i tried to do this myself, but im faily miserbly.
> Im trying to get an if statement for
> if (pRoom->exit == north)
>
> basicly what im asking is, how do i determine if Theres an exit to the
north.
>
> Thx in advance =)
>
> -Cyhawk
>
>
> -- 
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom


Reply via email to