some reformatting (5 of 4)
Take care of most of include/*.h. I punted on extern.h. For both src/*.c and include/*.h, I used mismatched checks of width > 79 to decide which files to look at and then width > 78 to decide which lines to maybe revise, so I didn't look at a bunch of the files. I don't plan to go back and do it right. Shortening lines that are 80 or wider to less than 80 is the significant part. Otherwise emacs puts a backslash in column 80 and the rest of the line of text on the next line of the screen, making things harder to read.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 youprop.h $NHDT-Date: 1702274029 2023/12/11 05:53:49 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.44 $ */
|
||||
/* NetHack 3.7 youprop.h $NHDT-Date: 1725653018 2024/09/06 20:03:38 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.45 $ */
|
||||
/* Copyright (c) 1989 Mike Threepoint */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -137,6 +137,7 @@
|
||||
#define EWounded_legs u.uprops[WOUNDED_LEGS].extrinsic
|
||||
#define Wounded_legs (HWounded_legs || EWounded_legs)
|
||||
|
||||
/* Sleepy: prone to falling asleep periodically; not necessarily asleep now */
|
||||
#define HSleepy u.uprops[SLEEPY].intrinsic
|
||||
#define ESleepy u.uprops[SLEEPY].extrinsic
|
||||
#define Sleepy (HSleepy || ESleepy)
|
||||
@@ -395,8 +396,9 @@
|
||||
|
||||
#define Hate_silver (u.ulycn >= LOW_PM || hates_silver(gy.youmonst.data))
|
||||
|
||||
/* _Hitchhikers_Guide_to_the_Galaxy_ on uses for 'towel': "wrap it round
|
||||
/* _The_Hitchhikers_Guide_to_the_Galaxy_ on uses for 'towel': "wrap it round
|
||||
your head to ward off noxious fumes" [we require it to be damp or wet] */
|
||||
#define Half_gas_damage (ublindf && ublindf->otyp == TOWEL && ublindf->spe > 0)
|
||||
#define Half_gas_damage \
|
||||
(ublindf && ublindf->otyp == TOWEL && ublindf->spe > 0)
|
||||
|
||||
#endif /* YOUPROP_H */
|
||||
|
||||
Reference in New Issue
Block a user