From 706f95ca7d871397abd3802ee02e46e9f51f9990 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sat, 24 Aug 2002 15:33:00 +0000 Subject: [PATCH] misc bits: options, also win32 follow-up from (from ): 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 | 1 + src/options.c | 6 +++--- win/win32/mhmap.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dat/rumors.fal b/dat/rumors.fal index 9d1aec0fd..90675fb5f 100644 --- a/dat/rumors.fal +++ b/dat/rumors.fal @@ -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. diff --git a/src/options.c b/src/options.c index e059c2a3b..8043db7af 100644 --- a/src/options.c +++ b/src/options.c @@ -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); diff --git a/win/win32/mhmap.c b/win/win32/mhmap.c index da30acc33..7d7fb73ab 100644 --- a/win/win32/mhmap.c +++ b/win/win32/mhmap.c @@ -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 ) { -- 2.50.1