Skip to content

Commit

Permalink
Fix CI errors/warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlaux committed Sep 1, 2024
1 parent ccefc80 commit 18cbd6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/m_nughud.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ static boolean M_NughudParseOption(const char *p, boolean wad)

void M_NughudLoadOptions(void)
{
int lump;
const int lump = W_CheckNumForName("NUGHUD");

if ((lump = W_CheckNumForName("NUGHUD")) != -1)
if (lump != -1)
{
int size = W_LumpLength(lump), buflen = 0;
char *buf = NULL, *p, *options = p = W_CacheLumpNum(lump, PU_STATIC);
Expand Down
4 changes: 2 additions & 2 deletions src/p_inter.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher)
0x61, 0x20, 0x63, 0x68, 0x65, 0x65, 0x73, 0x65, 0x2E, 0x00
};

pickupmsg(player, s);
pickupmsg(player, "%s", s);
}
else if (frights && frame == 2)
{
Expand All @@ -381,7 +381,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher)
0x61, 0x6E, 0x74, 0x65, 0x72, 0x6E, 0x2E, 0x00
};

pickupmsg(player, s);
pickupmsg(player, "%s", s);
}
else
// Match the below switch's default
Expand Down
2 changes: 1 addition & 1 deletion src/st_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,7 @@ void ST_loadGraphics(void)
have_xdthfaces = i;

{ // [Nugget] --------------------------------------------------------------
int lump;
int lump = 0;

// Find Status Bar Berserk patch
if ((lump = (W_CheckNumForName)("STBERSRK", ns_global)) >= 0)
Expand Down

0 comments on commit 18cbd6d

Please sign in to comment.