]> granicus.if.org Git - nethack/commitdiff
R778 - prayer bit
authorcohrs <cohrs>
Sun, 14 Apr 2002 04:46:11 +0000 (04:46 +0000)
committercohrs <cohrs>
Sun, 14 Apr 2002 04:46:11 +0000 (04:46 +0000)
- need to use min() not max() for action choice when not on altar

doc/fixes34.1
src/pray.c

index ed4493e883ecec3e8b542c726aa7655ebd5db1a2..8e90d78d07a629353b18b30395ca9eac585837d0 100644 (file)
@@ -69,6 +69,7 @@ prevent the Wizard of Yendor from displacing the high priest of Moloch out of
 ATR_BOLD on spell menu header
 travel command should restrict its shortest paths to areas of the map the
        hero knows about or might reasonably guess
+non-altar prayer should limit god action, not maximize it
 
 
 Platform- and/or Interface-Specific Fixes
index 5fff6848742a872c40e7b05949b620f8f64daa43..b492e8ed526bc93595714aabc3267c59e38725cf 100644 (file)
@@ -747,7 +747,7 @@ pleased(g_align)
        } else {
            int action = rn1(on_altar() ? 3 + on_shrine() : 2, Luck+1);
 
-           if (!on_altar()) action = max(action,2);
+           if (!on_altar()) action = min(action, 2);
            if (u.ualign.record < STRIDENT)
                action = (u.ualign.record > 0 || !rnl(2)) ? 1 : 0;