From: nhmall Date: Thu, 10 Feb 2022 14:16:29 +0000 (-0500) Subject: comment out some now dead code X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08da5befcb796f2d4c67a4ee07315160c3d6371f;p=nethack comment out some now dead code Closes #670 --- diff --git a/src/teleport.c b/src/teleport.c index 9b78d6244..df0a19ad5 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -729,6 +729,9 @@ dotele( but they both yield the same result.] */ #define spellev(spell_otyp) ((int) objects[spell_otyp].oc_level) energy = 5 * spellev(SPE_TELEPORT_AWAY); +#if 0 + /* the addition of !break_the_rules to the outer if-block in + 1ada454f rendered this dead code */ if (break_the_rules) { if (!castit) energy = 0; @@ -739,7 +742,9 @@ dotele( having enough to cast (which also uses the move) */ else if (u.uen < energy) energy = u.uen; - } else if (u.uhunger <= 10) { + } else +#endif + if (u.uhunger <= 10) { cantdoit = "are too weak from hunger"; } else if (ACURR(A_STR) < 4) { cantdoit = "lack the strength";