]> granicus.if.org Git - nethack/commit
I haven't been active in the past decade, but here's a small patch. Main
authorarromdee <arromdee>
Sun, 11 Dec 2011 18:11:29 +0000 (18:11 +0000)
committerarromdee <arromdee>
Sun, 11 Dec 2011 18:11:29 +0000 (18:11 +0000)
commit2a2e2b299e2082159f8d439f67f04d84c681029d
tree581779cda60cd0ace44adb66ea980a8607406bdb
parent77593aa294c61c1a00d8cec05b85f9b0cf5d4f66
I haven't been active in the past decade, but here's a small patch.  Main
branch only.  This adds a check when setting a new fruit so that if no fruits
have been created since the last time the option has been set, the current
fruit is overwritten.  Result: the user cannot repeatedly set the fruit
option and overflow the maximum fruit number.
include/extern.h
include/flag.h
src/cmd.c
src/mkobj.c
src/options.c
src/restore.c