bottom_room.c

MudOSa4DGD/mudlib/dgd/sfun/bottom_room.c · 314 B

From the archive MudOSa4DGD-30.06.98.tar.gz

Download the archive   « Back to the archive contents

/*
 * bottom_room.c
 *
 * SFUN: find the bottom room
 *
 * (C) Frank Schmidt, Jesus@NorseMUD
 *
 */

static varargs object bottom_room(object ob) {
  object env, old;
  if (!ob) ob = this_object();
  old = env = ob;
  while (env && !env->query_room())
    env = environment(old = env);
  return env ? env : old;
}

Site Stats

Snippets: 1791
Codebases: 571