go.c

untermud/CMD/go.c · 584 B

From the archive untermud-2.4-r22.tar.gz

Download the archive   « Back to the archive contents

/*
    Copyright (C) 1991, Marcus J. Ranum. All rights reserved.
*/

/* configure all options BEFORE including system stuff. */
#include    "config.h"
#include    "mud.h"
#include    "match.h"
#include    "vars.h"

/*
player movement. semi-tiny-mud-like
*/

/* ARGSUSED */
int cmd_go (int argc, char *argv[], char *who, char *aswho)
{
  char ob[MAXOID];
  char *here;
  char *actor;

  actor = run_actor ();
  here = ut_loc (actor);

  if (matchexit (actor, argv[1], here, MTCH_RAND | MTCH_EXACT, ob))
    return (UERR_NOMATCH);

  return (player_go (argc, argv, actor, here, ob));
}

Site Stats

Snippets: 1791
Codebases: 571