0 gold pieces (trunk only)

Newsgroup discussion about the devnull tournament which started
today has pointed out that ``d4294967296$'' would cause getobj() to create
a gold piece object with quantity 0 which then got dropped to the floor.
(It's specific to gold; other types of objects don't behave that way.)
Also, wrapping which went past negative and zero all the way to positive
again (like 429496729*10+7, yielding 1) wasn't detected.
This commit is contained in:
nethack.rankin
2007-11-01 19:24:19 +00:00
parent 408a36bc5f
commit 7c860335c1
2 changed files with 31 additions and 18 deletions

View File

@@ -267,6 +267,7 @@ tin contents can now sometimes be accessed on the same turn that the tin
starts being opened; when not, the opening feedback is more accurate
Nth adjustment of feedback when observing a pet eating
monsters who want the Amulet won't attack temple priests to try to get it
it was possible to generate an object of 0 gold pieces by dropping 2**32 gold
Platform- and/or Interface-Specific Fixes