Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Sep 2, 2023
1 parent e0d304b commit cdf3333
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -2082,19 +2082,19 @@ static void AM_AntiAliasing(void)

for (int y = 0; y <= (int)MAPAREA - MAPWIDTH; y += MAPWIDTH)
for (int x = y; x <= y + MAPWIDTH - 2; x++)
dest[x] = tinttab30[(dest[x + 1] << 8) + dest[x]];
dest[x] = tinttab33[(dest[x + 1] << 8) + dest[x]];

for (int y = 0; y <= (int)MAPAREA - MAPWIDTH; y += MAPWIDTH)
for (int x = y + MAPWIDTH - 2; x > y; x--)
dest[x] = tinttab30[(dest[x - 1] << 8) + dest[x]];
dest[x] = tinttab33[(dest[x - 1] << 8) + dest[x]];

for (int y = 0; y <= (int)MAPAREA - MAPWIDTH * 2; y += MAPWIDTH)
for (int x = y; x <= y + MAPWIDTH - 1; x++)
dest[x] = tinttab30[(dest[x + MAPWIDTH] << 8) + dest[x]];
dest[x] = tinttab33[(dest[x + MAPWIDTH] << 8) + dest[x]];

for (int y = MAPAREA - MAPWIDTH; y >= MAPWIDTH; y -= MAPWIDTH)
for (int x = y; x <= y + MAPWIDTH - 1; x++)
dest[x] = tinttab30[(dest[x - MAPWIDTH] << 8) + dest[x]];
dest[x] = tinttab33[(dest[x - MAPWIDTH] << 8) + dest[x]];

memcpy(mapscreen, dest, MAPAREA);
}
Expand Down
9 changes: 6 additions & 3 deletions src/c_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1840,9 +1840,11 @@ void bind_cmd_func2(char *cmd, char *parms)
if (!nobindoutput)
{
if (strlen(controls[i].control) == 1)
C_Output(BOLD("\"%s\"") " was bound to the " BOLD("'%s'") " key.", parm2, controls[i].control);
C_Output(BOLD("\"%s\"") " was bound to the " BOLD("'%s'") " key.",
parm2, controls[i].control);
else
C_Output(BOLD("\"%s\"") " was bound to the " BOLD("%s") " key.", parm2, controls[i].control);
C_Output(BOLD("\"%s\"") " was bound to the " BOLD("%s") " key.",
parm2, controls[i].control);
}
}
else if (controls[i].type == mousecontrol)
Expand All @@ -1852,7 +1854,8 @@ void bind_cmd_func2(char *cmd, char *parms)
M_SaveCVARs();

if (!nobindoutput)
C_Output(BOLD("\"%s\"") " was bound to the " BOLD("%s") " control.", parm2, controls[i].control);
C_Output(BOLD("\"%s\"") " was bound to the " BOLD("%s") " control.",
parm2, controls[i].control);
}
}
}
Expand Down

0 comments on commit cdf3333

Please sign in to comment.