Skip to content

Commit

Permalink
Minor formatting tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
andrikpowell committed Dec 7, 2024
1 parent f5fa5c7 commit 16765a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions prboom2/src/am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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();
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions prboom2/src/gl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions prboom2/src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 16765a0

Please sign in to comment.