early-roguelike/rogue3
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 Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
chase.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
command.c rogue3, srogue: showing the version should not take a turn. 2012-05-24 05:10:38 +00:00
daemon.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
daemons.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
fight.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
init.c Ask about unidentified objects by default 2009-10-16 14:21:24 +00:00
INSTALL.txt Added INSTALL.txt files 2010-02-13 16:25:29 +00:00
io.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
LICENSE.TXT Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
list.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
machdep.h rogue3: move default locations to /var. 2012-01-24 18:25:21 +00:00
main.c Fix the playback bug which was caused by CR/LF confusion 2010-02-16 00:03:06 +00:00
Makefile rogue3: move file locations from Makefile to machdep.h 2009-11-11 12:28:25 +00:00
mdport.c rogue3: improve keypad support. 2011-10-28 15:45:12 +00:00
mdport.h Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
misc.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
monsters.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
move.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
newlevel.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
options.c Prevent changing name or save file when using system savedir 2009-10-14 11:21:33 +00:00
pack.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
passages.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
potions.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
readme36.html Update the documentation 2009-10-24 14:12:26 +00:00
rings.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
rip.c rogue3, rogue4: fix log message formatting for wins. 2012-08-07 21:17:29 +00:00
rogue.6 Update the documentation 2009-10-24 14:12:26 +00:00
rogue.h rogue3: make LOGFILE work with SAVEDIR 2009-11-11 02:41:47 +00:00
rogue.r Further updates to the documentation 2009-10-24 14:21:15 +00:00
rogue36.cat Update the documentation 2009-10-24 14:12:26 +00:00
rogue36.doc Further updates to the documentation 2009-10-24 14:21:15 +00:00
rogue36.html Further updates to the documentation 2009-10-24 14:21:15 +00:00
rogue36.sln Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
rogue36.vcproj Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
rooms.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
save.c Fix the playback bug which was caused by CR/LF confusion 2010-02-16 00:03:06 +00:00
scrolls.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
state.c Properly handle invalid room references in savefiles. 2013-08-08 12:41:35 -07:00
sticks.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
things.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
vers.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
weapons.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
wizard.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
xcrypt.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00