Fix staffghost loading for old demo version

This commit is contained in:
James R 2024-05-05 20:48:30 -07:00
parent caec64192d
commit 8326292a3f

View file

@ -2525,6 +2525,8 @@ UINT8 G_CmpDemoTime(char *oldname, char *newname)
{ {
case DEMOVERSION: // latest always supported case DEMOVERSION: // latest always supported
case 0x0009: // older staff ghosts case 0x0009: // older staff ghosts
case 0x000A: // older staff ghosts
case 0x000B: // older staff ghosts
break; break;
// too old, cannot support. // too old, cannot support.
default: default:
@ -2674,6 +2676,8 @@ void G_LoadDemoInfo(menudemo_t *pdemo, boolean allownonmultiplayer)
{ {
case DEMOVERSION: // latest always supported case DEMOVERSION: // latest always supported
case 0x0009: // older staff ghosts case 0x0009: // older staff ghosts
case 0x000A: // older staff ghosts
case 0x000B: // older staff ghosts
if (P_SaveBufferRemaining(&info) < 64) if (P_SaveBufferRemaining(&info) < 64)
{ {
goto corrupt; goto corrupt;
@ -3101,6 +3105,8 @@ void G_DoPlayDemoEx(const char *defdemoname, lumpnum_t deflumpnum)
{ {
case DEMOVERSION: // latest always supported case DEMOVERSION: // latest always supported
case 0x0009: // older staff ghosts case 0x0009: // older staff ghosts
case 0x000A: // older staff ghosts
case 0x000B: // older staff ghosts
break; break;
// too old, cannot support. // too old, cannot support.
default: default:
@ -3559,6 +3565,8 @@ void G_AddGhost(savebuffer_t *buffer, const char *defdemoname)
{ {
case DEMOVERSION: // latest always supported case DEMOVERSION: // latest always supported
case 0x0009: // older staff ghosts case 0x0009: // older staff ghosts
case 0x000A: // older staff ghosts
case 0x000B: // older staff ghosts
break; break;
// too old, cannot support. // too old, cannot support.
default: default:
@ -3815,6 +3823,8 @@ staffbrief_t *G_GetStaffGhostBrief(UINT8 *buffer)
{ {
case DEMOVERSION: // latest always supported case DEMOVERSION: // latest always supported
case 0x0009: // older staff ghosts case 0x0009: // older staff ghosts
case 0x000A: // older staff ghosts
case 0x000B: // older staff ghosts
break; break;
// too old, cannot support. // too old, cannot support.