Re: IMPLONLY room flag

From: Mike Stilson (mike@c746148-a.ehlls1.pa.home.com)
Date: 08/04/01


On Sat, Aug 04, 2001 at 01:36:36AM -0700, NeoStar wrote:
>ACMD(do_goto)
>{
>  room_rnum location;

location isn't initialized here.

>+ if (GET_LEVEL(ch) < LVL_IMPL) {
>+   if (ROOM_FLAGGED(location, ROOM_IMPLONLY)) {
>+     send_to_char("You are not godly enough to use that room!\r\n", ch);
>+      return;
>+    }
>+  }
>
>
>  if ((location = find_target_room(ch, argument)) < 0)
>    return;

location gets it's value here.
Move your 6 lines of code to this point and it'll work fine.

>
>  if (POOFOUT(ch))
>    sprintf(buf, "%s", POOFOUT(ch));

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST