early-roguelike/rogue5
John "Elwin" Edwards 6dfde944f0 Rogue V4, V5: disable a cheat granting permanent monster detection.
In these two games, a potion of monster detection turns on the player's
SEEMONST flag.  A fuse is set to call turn_see() to turn the flag back
off.  But the save and restore functions do not recognize turn_see() and
fail to set the fuse up again.

When restoring, Rogue V4 merely sets the fuse's function to NULL and
leaves it burning.  When it goes off, a segfault results.  Rogue V5
clears all the fuse's fields, and the player retains the ability to see
all monsters on the level.

The save and restore code can now handle the fuse.  The function used is
a new wrapper, turn_see_off(), which should lead to less problems with
daemons being multiple incompatible types.

Also, Rogue V4 and Super-Rogue now properly clear unrecognized daemon
and fuse slots when restoring a saved game.
2016-03-05 12:10:20 -05:00
..
.svnignore Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
acinclude.m4 Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
armor.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
chase.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
command.c Don't set the player's ISRUN flag. 2013-08-13 09:19:56 -07:00
configure.ac Generate text documentation from the troff source files. 2016-02-21 20:47:12 -05:00
daemon.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
daemons.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
extern.c rogue5: add savedir, logfile, bugfixes 2010-05-24 20:16:15 +00:00
extern.h rogue5: add savedir, logfile, bugfixes 2010-05-24 20:16:15 +00:00
fight.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
findpw.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
init.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
io.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
LICENSE.TXT Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
list.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
mach_dep.c rogue5: save the game when SIGHUP is received. 2014-04-26 08:52:26 -07:00
main.c Don't truncate player name in savefile name or log message. 2014-03-23 21:27:14 -07:00
Makefile.in Makefile fixes related to installation. 2016-02-26 17:30:30 -05:00
Makefile.std Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
mdport.c Don't swap signal handlers in md_shellescape(). 2015-06-08 10:01:25 -04:00
misc.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
monsters.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
move.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
new_level.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
options.c rogue5: add savedir, logfile, bugfixes 2010-05-24 20:16:15 +00:00
pack.c rogue3, rogue5: fix all GCC5 warnings. 2016-01-23 09:35:14 -05:00
passages.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
potions.c Rogue V4, V5: disable a cheat granting permanent monster detection. 2016-03-05 12:10:20 -05:00
rings.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
rip.c Don't truncate player name in savefile name or log message. 2014-03-23 21:27:14 -07:00
rogue.6.in Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
rogue.desktop Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
rogue.h Rogue V4, V5: disable a cheat granting permanent monster detection. 2016-03-05 12:10:20 -05:00
rogue.html.in Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
rogue.me.in Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
rogue.png Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
rogue.spec Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
rogue5.vcxproj Update the Visual Studio project files. 2015-08-18 13:23:56 -04:00
rogue5.vcxproj.filters Update the Visual Studio project files. 2015-08-18 13:23:56 -04:00
rooms.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
save.c rogue5: Clear encerror so scoreboard writing works. 2011-10-07 06:15:48 +00:00
scedit.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
scmisc.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
score.h Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
scrolls.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
state.c Rogue V4, V5: disable a cheat granting permanent monster detection. 2016-03-05 12:10:20 -05:00
sticks.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
things.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
vers.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
weapons.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
wizard.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00
xcrypt.c Import Rogue 5.4 from the Roguelike Restoration Project (r1490) 2010-05-24 20:10:59 +00:00