early-roguelike/srogue
John "Elwin" Edwards e375c8bd05 Properly handle invalid room references in savefiles.
In all games, rs_write_room_reference() stored -1 for a nonexistent
room, but rs_read_room_reference() did not check for out-of-bounds
values, leading to pointers to rooms[-1], which sometimes caused
crashes.  rs_read_room_reference() has now been modified to use NULL
instead.

Some of the games required further changes to replace NULL with the
pointer to the actual room.  Others are capable of handling NULL for
objects not in any room.
2013-08-08 12:41:35 -07:00
..
armor.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
bob.h Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
bsdtty.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
chase.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
command.c rogue3, srogue: showing the version should not take a turn. 2012-05-24 05:10:38 +00:00
cx.h Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
daemon.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
daemons.c srogue: fix bug causing healing on invalid commands. 2010-11-27 16:49:44 +00:00
disply.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
encumb.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
fight.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
global.c srogue: add support for SAVEDIR 2010-11-25 17:28:29 +00:00
init.c srogue: include missing headers. 2012-01-27 17:29:30 +00:00
io.c srogue: include missing headers. 2012-01-27 17:29:30 +00:00
LICENSE.TXT Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
list.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
main.c srogue: include missing headers. 2012-01-27 17:29:30 +00:00
Makefile Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
makevers.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
misc.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
monsters.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
move.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
ncx.h Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
new_leve.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
newterm.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
options.c srogue: include missing headers. 2012-01-27 17:29:30 +00:00
pack.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
passages.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
potions.c srogue: include missing headers. 2012-01-27 17:29:30 +00:00
pstats.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
rdk.h Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
rgdata.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
rings.c srogue: include missing headers. 2012-01-27 17:29:30 +00:00
rip.c srogue: include missing headers. 2012-01-27 17:29:30 +00:00
rogue.ext srogue: add support for SAVEDIR 2010-11-25 17:28:29 +00:00
rogue.h Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
rogue.nr Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
rooms.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
save.c srogue: don't store machine-dependent metadata in the savefile. 2013-08-06 19:02:58 -07:00
scrolls.c srogue: include missing headers. 2012-01-27 17:29:30 +00:00
state.c Properly handle invalid room references in savefiles. 2013-08-08 12:41:35 -07:00
sticks.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
things.c srogue: include missing headers. 2012-01-27 17:29:30 +00:00
trader.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
vers.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
weapons.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
wizard.c srogue: include missing headers. 2012-01-27 17:29:30 +00:00
xcrypt.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00