Re: Transportation devices

From: Stephen Wolfe (siv@CYBERENET.NET)
Date: 08/29/98


> be a bit weirder.  Now, when typing beamup or beamdown, they get the "You
> can't do that here!" for both of then, not just beamdown.  Any clues?

> if (!CMD_IS("beamup") || !CMD_IS("beamdown") ){
>         return 0;
> }

you're getting "you can't do that.." cause of that check..think about the
logic..if not one or not the other..that check will always return a 1
since you can never have both commands..the correct check would be either:
if (!(cmd_is() || cmd_is))
or
if (!cmd_is && !cmd_is)

siv


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST