-/* $NetBSD: hack.trap.c,v 1.8 2009/06/07 18:30:39 dholland Exp $ */
+/* $NetBSD: hack.trap.c,v 1.10 2011/08/07 06:03:45 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.trap.c,v 1.8 2009/06/07 18:30:39 dholland Exp $");
+__RCSID("$NetBSD: hack.trap.c,v 1.10 2011/08/07 06:03:45 dholland Exp $");
#endif /* not lint */
#include <stdlib.h>
" mimic"
};
+static void vtele(void);
+static void teleds(int, int);
+static int teleok(int, int);
+
struct trap *
maketrap(int x, int y, int typ)
{
case TRAPDOOR:
if (!xdnstair || u.ustuck)
break;
- /* fall into next case */
+ /* FALLTHROUGH */
default:
dotrap(trap);
}
pickup(1);
}
-void
+static void
vtele(void)
{
struct mkroom *croom;
teleds(nux, nuy);
}
-void
+static void
teleds(int nux, int nuy)
{
if (Punished)
read_engr_at(u.ux, u.uy);
}
-int
+static int
teleok(int x, int y)
{ /* might throw him into a POOL */
return (isok(x, y) && !IS_ROCK(levl[x][y].typ) && !m_at(x, y) &&