]> granicus.if.org Git - nethack/commitdiff
formatting bit: display_self()
authorPatR <rankin@nethack.org>
Tue, 21 Sep 2021 08:02:52 +0000 (01:02 -0700)
committerPatR <rankin@nethack.org>
Tue, 21 Sep 2021 08:02:52 +0000 (01:02 -0700)
include/display.h

index 2081f0b32d7568d3ab58d615314f7432517a65a2..8ed2ef878f4e9655e42fe2883f82dd07b5038855 100644 (file)
          ? ridden_mon_to_glyph(u.usteed, rn2_on_display_rng) \
          : (otherwise_self))
 
-#define display_self()                                                        \
-    show_glyph(u.ux, u.uy,                                                    \
-               maybe_display_usteed(                                          \
-                   ((int) U_AP_TYPE == M_AP_NOTHING) ? hero_glyph             \
-                   : ((int) U_AP_TYPE == M_AP_FURNITURE)                      \
-                       ? cmap_to_glyph((int) g.youmonst.mappearance)          \
-                   : ((int) U_AP_TYPE == M_AP_OBJECT)                         \
-                       ? objnum_to_glyph(                                     \
-                           (int) g.youmonst.mappearance) /* else U_AP_TYPE == \
-                                                      M_AP_MONSTER */         \
-                       : monnum_to_glyph((int) g.youmonst.mappearance, (int) Ugender)))
+#define display_self() \
+    show_glyph(u.ux, u.uy, maybe_display_usteed(                        \
+        ((int) U_AP_TYPE == M_AP_NOTHING)                               \
+        ? hero_glyph                                                    \
+        : ((int) U_AP_TYPE == M_AP_FURNITURE)                           \
+          ? cmap_to_glyph((int) g.youmonst.mappearance)                 \
+          : ((int) U_AP_TYPE == M_AP_OBJECT)                            \
+            ? objnum_to_glyph((int) g.youmonst.mappearance)             \
+            /* else U_AP_TYPE == M_AP_MONSTER */                        \
+            : monnum_to_glyph((int) g.youmonst.mappearance, Ugender)))
 
 /*
  * NetHack glyphs