fix the new compiler warnings
This commit is contained in:
1 parent
4e591ecc4d
commit
776ea3247a
3 files changed
+4
-7
No files matched your search
+1
-4
@@ -8123,9 +8123,6 @@ void G_SaveDemo(void)
|
||||
|
||||
UINT8 *p = demobuf.buffer+16; // after version
|
||||
UINT32 length;
|
||||
#ifdef NOMD5
|
||||
UINT8 i;
|
||||
#endif
|
||||
|
||||
// Ensure extrainfo pointer is always available, even if no info is present.
|
||||
if (demoinfo_p && *(UINT32 *)demoinfo_p == 0)
|
||||
@@ -8180,7 +8177,7 @@ void G_SaveDemo(void)
|
||||
length = *(UINT32 *)demoinfo_p;
|
||||
WRITEUINT32(demoinfo_p, length);
|
||||
#ifdef NOMD5
|
||||
for (i = 0; i < 16; i++, p++)
|
||||
for (UINT8 k = 0; k < 16; k++, p++)
|
||||
*p = M_RandomByte(); // This MD5 was chosen by fair dice roll and most likely < 50% correct.
|
||||
#else
|
||||
// Make a checksum of everything after the checksum in the file up to the end of the standard data. Extrainfo is freely modifiable.
|
||||
|
||||
+1
-1
@@ -7133,7 +7133,7 @@ static void DrawReplayHutReplayInfo(void)
|
||||
|
||||
case MD_OUTDATED:
|
||||
V_DrawThinString(17, 64, V_SNAPTOTOP|V_ALLOWLOWERCASE|V_TRANSLUCENT|highlightflags, va("Recorded on an outdated version. %s", demolist[dir_on[menudepthleft]].version));
|
||||
/*fallthru*/
|
||||
/* FALLTHRU */
|
||||
default:
|
||||
// Draw level stuff
|
||||
x = 15; y = 15;
|
||||
|
||||
+2
-2
@@ -6985,7 +6985,7 @@ static boolean P_MobjDeadThink(mobj_t *mobj)
|
||||
P_RemoveMobj(mobj);
|
||||
return false;
|
||||
}
|
||||
// fallthru
|
||||
/* FALLTHRU */
|
||||
case MT_ORBINAUT_SHIELD:
|
||||
case MT_BANANA_SHIELD:
|
||||
case MT_EGGMANITEM_SHIELD:
|
||||
@@ -6995,7 +6995,7 @@ static boolean P_MobjDeadThink(mobj_t *mobj)
|
||||
case MT_JAWZ_DUD:
|
||||
if (P_IsObjectOnGround(mobj))
|
||||
P_SetMobjState(mobj, mobj->info->xdeathstate);
|
||||
// fallthru
|
||||
/* FALLTHRU */
|
||||
case MT_JAWZ_SHIELD:
|
||||
mobj->flags2 ^= MF2_DONTDRAW;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user