plug fountain & throne SIGHUP cheat
When using a fountain or throne, getting a --More-- prompt
usually means that you're about to be told that it has just dried
up or vanished. But since that topology change didn't occur until
after the message, players could cheat by forcing SIGHUP instead
of answering the prompt; the resulting save file would retain the
original topology. So change the dungeon prior to telling the user
about it.
The `fixes' entry possibly belongs in the tty-specific category
but since the change is to core code I put it in the general section.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)sit.c 3.4 2000/11/09 */
|
||||
/* SCCS Id: @(#)sit.c 3.4 2002/07/12 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -270,8 +270,8 @@ dosit()
|
||||
|
||||
if (!rn2(3) && IS_THRONE(levl[u.ux][u.uy].typ)) {
|
||||
/* may have teleported */
|
||||
pline_The("throne vanishes in a puff of logic.");
|
||||
levl[u.ux][u.uy].typ = ROOM;
|
||||
pline_The("throne vanishes in a puff of logic.");
|
||||
newsym(u.ux,u.uy);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user