Build: fixup warnings in Debug builds

This commit is contained in:
Alam Ed Arias 2017-09-28 16:54:26 -04:00
parent 92aa0e000e
commit 01602fa1f1
4 changed files with 6 additions and 4 deletions

View file

@ -4625,7 +4625,7 @@ static void M_ReadSavegameInfo(UINT32 slot)
savegameinfo[slot].botskin = 0; savegameinfo[slot].botskin = 0;
if (savegameinfo[slot].botskin) if (savegameinfo[slot].botskin)
snprintf(savegameinfo[slot].playername, 32, "%s & %s", snprintf(savegameinfo[slot].playername, 36, "%s & %s",
skins[savegameinfo[slot].skinnum].realname, skins[savegameinfo[slot].skinnum].realname,
skins[savegameinfo[slot].botskin-1].realname); skins[savegameinfo[slot].botskin-1].realname);
else else

View file

@ -190,7 +190,7 @@ typedef struct
// savegame struct for save game menu // savegame struct for save game menu
typedef struct typedef struct
{ {
char playername[32]; char playername[37];
char levelname[32]; char levelname[32];
UINT8 actnum; UINT8 actnum;
UINT8 skincolor; UINT8 skincolor;

View file

@ -4812,9 +4812,11 @@ void A_UnidusBall(mobj_t *actor)
case 0: // at least one frame where not dashing case 0: // at least one frame where not dashing
if (!skull) ++actor->extravalue2; if (!skull) ++actor->extravalue2;
else break; else break;
/* FALLTHRU */
case 1: // at least one frame where ARE dashing case 1: // at least one frame where ARE dashing
if (skull) ++actor->extravalue2; if (skull) ++actor->extravalue2;
else break; else break;
/* FALLTHRU */
case 2: // not dashing again? case 2: // not dashing again?
if (skull) break; if (skull) break;
// launch. // launch.

View file

@ -57,7 +57,7 @@ typedef union
{ {
struct struct
{ {
char passed1[14]; // KNUCKLES GOT / CRAWLA HONCHO char passed1[21]; // KNUCKLES GOT / CRAWLA HONCHO
char passed2[16]; // THROUGH THE ACT / PASSED THE ACT char passed2[16]; // THROUGH THE ACT / PASSED THE ACT
INT32 passedx1; INT32 passedx1;
INT32 passedx2; INT32 passedx2;
@ -77,7 +77,7 @@ typedef union
struct struct
{ {
char passed1[SKINNAMESIZE+1]; // KNUCKLES GOT / CRAWLA HONCHO char passed1[29]; // KNUCKLES GOT / CRAWLA HONCHO
char passed2[17]; // A CHAOS EMERALD / GOT THEM ALL! char passed2[17]; // A CHAOS EMERALD / GOT THEM ALL!
char passed3[15]; // CAN NOW BECOME char passed3[15]; // CAN NOW BECOME
char passed4[SKINNAMESIZE+7]; // SUPER CRAWLA HONCHO char passed4[SKINNAMESIZE+7]; // SUPER CRAWLA HONCHO