code cleanup
removing the remains of sync_hunger() which has been #ifdef'd out for years.
This commit is contained in:
@@ -154,3 +154,4 @@ all fields in flags struct are unconditionally present
|
|||||||
monst cham field now a short and uses mons[] index
|
monst cham field now a short and uses mons[] index
|
||||||
rearrange some monster ordering to follow rule #2 listed at top of monst.c
|
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
|
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
|
||||||
|
|||||||
@@ -557,9 +557,6 @@ E void FDECL(lesshungry, (int));
|
|||||||
E boolean NDECL(is_fainted);
|
E boolean NDECL(is_fainted);
|
||||||
E void NDECL(reset_faint);
|
E void NDECL(reset_faint);
|
||||||
E void NDECL(violated_vegetarian);
|
E void NDECL(violated_vegetarian);
|
||||||
#if 0
|
|
||||||
E void NDECL(sync_hunger);
|
|
||||||
#endif
|
|
||||||
E void FDECL(newuhs, (BOOLEAN_P));
|
E void FDECL(newuhs, (BOOLEAN_P));
|
||||||
E struct obj *FDECL(floorfood, (const char *,int));
|
E struct obj *FDECL(floorfood, (const char *,int));
|
||||||
E void NDECL(vomit);
|
E void NDECL(vomit);
|
||||||
|
|||||||
@@ -437,9 +437,6 @@ stop_occupation()
|
|||||||
You("stop %s.", occtxt);
|
You("stop %s.", occtxt);
|
||||||
occupation = 0;
|
occupation = 0;
|
||||||
context.botl = 1; /* in case u.uhs changed */
|
context.botl = 1; /* in case u.uhs changed */
|
||||||
/* fainting stops your occupation, there's no reason to sync.
|
|
||||||
sync_hunger();
|
|
||||||
*/
|
|
||||||
#ifdef REDO
|
#ifdef REDO
|
||||||
nomul(0);
|
nomul(0);
|
||||||
pushch(0);
|
pushch(0);
|
||||||
|
|||||||
15
src/eat.c
15
src/eat.c
@@ -2346,21 +2346,6 @@ reset_faint() /* call when a faint must be prematurely terminated */
|
|||||||
if(is_fainted()) nomul(0);
|
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
|
void
|
||||||
newuhs(incr) /* compute and comment on your (new?) hunger status */
|
newuhs(incr) /* compute and comment on your (new?) hunger status */
|
||||||
boolean incr;
|
boolean incr;
|
||||||
|
|||||||
Reference in New Issue
Block a user