From 16765a073ab8536c3c352d42bfd479ff74c33ac4 Mon Sep 17 00:00:00 2001 From: Arsinikk Date: Sat, 7 Dec 2024 01:18:45 -0600 Subject: [PATCH] Minor formatting tweaks --- prboom2/src/am_map.c | 6 +++--- prboom2/src/gl_main.c | 4 ++-- prboom2/src/m_menu.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/prboom2/src/am_map.c b/prboom2/src/am_map.c index e44228241..3650a72c9 100644 --- a/prboom2/src/am_map.c +++ b/prboom2/src/am_map.c @@ -617,7 +617,7 @@ void AM_SetPosition(void) f_x = f_y = 0; f_w = SCREENWIDTH; - if (automap_overlay>0) + if (automap_overlay > 0) { f_h = viewheight; } @@ -2774,7 +2774,7 @@ void AM_Drawer (dboolean minimap) if (!automap_active && !minimap) return; - if (automap_active && automap_overlay==2 && minimap) + if (automap_active && automap_overlay == 2 && minimap) return; V_BeginAutomapDraw(); @@ -2800,7 +2800,7 @@ void AM_Drawer (dboolean minimap) if (!automap_overlay) // cph - If not overlay mode, clear background for the automap V_FillRect(FB, f_x, f_y, f_w, f_h, (byte)mapcolor_p->back); //jff 1/5/98 background default color - if (automap_overlay==2 && !M_MenuIsShaded()) + if (automap_overlay == 2 && !M_MenuIsShaded()) V_DrawShaded(FB, f_x, f_y, f_w, f_h, screenshade); if (map_textured) diff --git a/prboom2/src/gl_main.c b/prboom2/src/gl_main.c index c1f3f3071..31cfd10b9 100644 --- a/prboom2/src/gl_main.c +++ b/prboom2/src/gl_main.c @@ -282,7 +282,7 @@ void gld_MapDrawSubsectors(player_t *plr, int fx, int fy, fixed_t mx, fixed_t my float coord_scale; GLTexture *gltexture; - alpha = (float)((automap_overlay>0) ? map_textured_overlay_trans : map_textured_trans) / 100.0f; + alpha = (float)((automap_overlay > 0) ? map_textured_overlay_trans : map_textured_trans) / 100.0f; if (alpha == 0) return; @@ -714,7 +714,7 @@ void gld_DrawLine_f(float x0, float y0, float x1, float y1, int BaseColor) unsigned char a; map_line_t *line; - a = ((automap_overlay==1) ? map_lines_overlay_trans * 255 / 100 : 255); + a = ((automap_overlay == 1) ? map_lines_overlay_trans * 255 / 100 : 255); if (a == 0) return; diff --git a/prboom2/src/m_menu.c b/prboom2/src/m_menu.c index 8767fd5b7..ce58856f3 100644 --- a/prboom2/src/m_menu.c +++ b/prboom2/src/m_menu.c @@ -207,7 +207,7 @@ void (*messageRoutine)(int response); static void M_DrawBackground(const char *flat, int scrn) { - if (dsda_IntConfig(dsda_config_menu_background)==2) + if (dsda_IntConfig(dsda_config_menu_background) == 2) V_DrawBackground(flat, scrn); } @@ -5839,7 +5839,7 @@ int screenshade = 20; dboolean fadeBG(void) { - return dsda_IntConfig(dsda_config_menu_background)==1; + return dsda_IntConfig(dsda_config_menu_background) == 1; } dboolean M_MenuIsShaded(void)