-/* $NetBSD: cypher.c,v 1.10 1999/09/18 16:41:38 jsm Exp $ */
+/* $NetBSD: cypher.c,v 1.12 2000/09/08 17:25:32 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)cypher.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: cypher.c,v 1.10 1999/09/18 16:41:38 jsm Exp $");
+__RCSID("$NetBSD: cypher.c,v 1.12 2000/09/08 17:25:32 jsm Exp $");
#endif
#endif /* not lint */
if (location[position].access || wiz || tempwiz) {
if (!location[position].access)
puts("Zap! A gust of wind lifts you up.");
- if (!move(location[position].up, AHEAD))
+ if (!moveplayer(location[position].up, AHEAD))
return (-1);
} else {
- puts("There is no way up");
+ puts("There is no way up.");
return (-1);
}
lflag = 0;
break;
case DOWN:
- if (!move(location[position].down, AHEAD))
+ if (!moveplayer(location[position].down, AHEAD))
return (-1);
lflag = 0;
break;
case LEFT:
- if (!move(left, LEFT))
+ if (!moveplayer(left, LEFT))
return (-1);
lflag = 0;
break;
case RIGHT:
- if (!move(right, RIGHT))
+ if (!moveplayer(right, RIGHT))
return (-1);
lflag = 0;
break;
case AHEAD:
- if (!move(ahead, AHEAD))
+ if (!moveplayer(ahead, AHEAD))
return (-1);
lflag = 0;
break;
case BACK:
- if (!move(back, BACK))
+ if (!moveplayer(back, BACK))
return (-1);
lflag = 0;
break;