]> granicus.if.org Git - nethack/commit
#R675: bug in win32 GUI (division by zero)
authornethack.allison <nethack.allison>
Sun, 24 Mar 2002 23:53:28 +0000 (23:53 +0000)
committernethack.allison <nethack.allison>
Sun, 24 Mar 2002 23:53:28 +0000 (23:53 +0000)
commit20779fba758c4425647e754abd1d04f934fc5252
tree3ff86a5bd3bfa65e2e7c5ff2cc041c0ab21825b4
parente3028a84c042c21abbd9976b1ece964269025c79
#R675: bug in win32 GUI (division by zero)

(from <Someone>)

>The tile size is actually set just once in mhmap.c so validation can be done
>in one place. The patch is attached.
>
><email deleted>
on Sunday, March 24, 2002 at 16:15:50
---------------------------------------------------------------------------

mailversion: 1.10

nhversion: 3.4.0

nhfrom: 3.4.0 Official binary release for Windows 95/98/NT/2000/Me/XP
(nh340win.zip)

hardware: 1 Ghz AMD Athlon, 512 MB RAM etc. etc.
I don't think that the hardware is related to the problem because I found it.

software: I used Win 98 (1st edition) and MS VC++ 6.0 to find/fix the bug in
Nethack 3.4.0.

comments: steps to crash: start nethackw.exe - start a game - select "fit to
sreen" in the map menue - rezize the map until it is very very small -> crash
win/win32/mhmap.c