]> granicus.if.org Git - nethack/commitdiff
code cleanup
authorcohrs <cohrs>
Fri, 25 Mar 2005 20:00:15 +0000 (20:00 +0000)
committercohrs <cohrs>
Fri, 25 Mar 2005 20:00:15 +0000 (20:00 +0000)
removing the remains of sync_hunger() which has been #ifdef'd out for years.

doc/fixes35.0
include/extern.h
src/allmain.c
src/eat.c

index 4f6507f77b2262f6ecc343e420ff13f0100e551e..7803b9cb4e36e04f2faa0f6af5258742a13b64a9 100644 (file)
@@ -154,3 +154,4 @@ all fields in flags struct are unconditionally present
 monst cham field now a short and uses mons[] index
 rearrange some monster ordering to follow rule #2 listed at top of monst.c
 change region player_flags to more appropriate unsigned int instead of boolean
+remove remains of sync_hunger, which has been ifdef'd out for years
index 2ac036e9ccf58e3ddc48c22163e95edc1e460072..8e456d04d736290b5d17367fbd2ec29001712d89 100644 (file)
@@ -557,9 +557,6 @@ E void FDECL(lesshungry, (int));
 E boolean NDECL(is_fainted);
 E void NDECL(reset_faint);
 E void NDECL(violated_vegetarian);
-#if 0
-E void NDECL(sync_hunger);
-#endif
 E void FDECL(newuhs, (BOOLEAN_P));
 E struct obj *FDECL(floorfood, (const char *,int));
 E void NDECL(vomit);
index 59882977550c18299182c41333f49c3a8e7fde08..62d6e6e282c66c199f48d6417511e7b0fdea38af 100644 (file)
@@ -437,9 +437,6 @@ stop_occupation()
                    You("stop %s.", occtxt);
                occupation = 0;
                context.botl = 1; /* in case u.uhs changed */
-/* fainting stops your occupation, there's no reason to sync.
-               sync_hunger();
-*/
 #ifdef REDO
                nomul(0);
                pushch(0);
index 278d5e6615cdd374f5c69687b7febd24ca5f3bac..ebd74e276ea03972f5ea96d805cce9d3a9ff6d33 100644 (file)
--- a/src/eat.c
+++ b/src/eat.c
@@ -2346,21 +2346,6 @@ reset_faint()    /* call when a faint must be prematurely terminated */
        if(is_fainted()) nomul(0);
 }
 
-#if 0
-void
-sync_hunger()
-{
-
-       if(is_fainted()) {
-
-               !Deaf = 0;
-               nomul(-10+(u.uhunger/10));
-               nomovemsg = "You regain consciousness.";
-               afternmv = unfaint;
-       }
-}
-#endif
-
 void
 newuhs(incr)           /* compute and comment on your (new?) hunger status */
 boolean incr;