]> granicus.if.org Git - nethack/commitdiff
misc bits: options, also win32 follow-up from <Someone>
authornethack.allison <nethack.allison>
Sat, 24 Aug 2002 15:33:00 +0000 (15:33 +0000)
committernethack.allison <nethack.allison>
Sat, 24 Aug 2002 15:33:00 +0000 (15:33 +0000)
(from <Someone>):
I guess that this:
      mcam += iflags.wc_scroll_amount;
should be his:
      mcam += iflags.wc_scroll_amount - 1;
In words: If scroll amount is 1, the behaviour should be as it was
before the option existed, which means: no addition to mcam.

dat/rumors.fal
src/options.c
win/win32/mhmap.c

index 9d1aec0fdd7b04e131d8ecefb1ab7306f6abd3e0..90675fb5f5b1287f03ee35f3a4a27a1965b9ca71 100644 (file)
@@ -156,6 +156,7 @@ Some questions the Sphynx asks just *don't* have any answers.
 Sometimes "mu" is the answer.
 Sorry, no fortune this time.  Better luck next cookie!
 Spare your scrolls of make-edible until it's really necessary!
+Stormbringer doesn't steal souls.  People steal souls.
 Suddenly, the dungeon will collapse...
 Taming a mail daemon may cause a system security violation.
 The crowd was so tough, the Stooges won't play the Dungeon anymore, nyuk nyuk.
index e059c2a3b5efe5c80c1ba73f11d3a9638c6edb80..8043db7afee2e4b860f4447ae90df1a5c4f79d97 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)options.c  3.4     2002/07/27      */
+/*     SCCS Id: @(#)options.c  3.4     2002/08/24      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -2520,7 +2520,7 @@ boolean setinitial,setfromfile;
            }
        }
        retval = TRUE;
-    } if (!strcmp("runmode", optname)) {
+    } else if (!strcmp("runmode", optname)) {
        const char *mode_name;
        menu_item *mode_pick = (menu_item *)0;
        tmpwin = create_nhwindow(NHW_MENU);
@@ -2540,7 +2540,7 @@ boolean setinitial,setfromfile;
        retval = TRUE;
     } 
 #ifdef TTY_GRAPHICS
-       else if (!strcmp("msg_window", optname)) {
+      else if (!strcmp("msg_window", optname)) {
        /* by Christian W. Cooper */
        menu_item *window_pick = (menu_item *)0;
        tmpwin = create_nhwindow(NHW_MENU);
index da30acc33a17d6816f5cd8d85dd50d4fc60bc103..7d7fb73ab0b59074cb76e1affaad03d81436dec4 100644 (file)
@@ -420,7 +420,7 @@ void onMSNHCommand(HWND hWnd, WPARAM wParam, LPARAM lParam)
                        ( msg_data->y<(data->yPos+mcam) ||
                          msg_data->y>(data->yPos+data->yPageSize-mcam) );
                
-     mcam += iflags.wc_scroll_amount;
+               mcam += iflags.wc_scroll_amount - 1;
                /* get page size and center horizontally on x-position */
                if( scroll_x ) {
                        if( data->xPageSize<=2*mcam ) {