Skip to content

Commit

Permalink
Fix staffghost loading for old demo version
Browse files Browse the repository at this point in the history
  • Loading branch information
jameds committed May 6, 2024
1 parent caec641 commit 8326292
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/g_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2525,6 +2525,8 @@ UINT8 G_CmpDemoTime(char *oldname, char *newname)
{
case DEMOVERSION: // latest always supported
case 0x0009: // older staff ghosts
case 0x000A: // older staff ghosts
case 0x000B: // older staff ghosts
break;
// too old, cannot support.
default:
Expand Down Expand Up @@ -2674,6 +2676,8 @@ void G_LoadDemoInfo(menudemo_t *pdemo, boolean allownonmultiplayer)
{
case DEMOVERSION: // latest always supported
case 0x0009: // older staff ghosts
case 0x000A: // older staff ghosts
case 0x000B: // older staff ghosts
if (P_SaveBufferRemaining(&info) < 64)
{
goto corrupt;
Expand Down Expand Up @@ -3101,6 +3105,8 @@ void G_DoPlayDemoEx(const char *defdemoname, lumpnum_t deflumpnum)
{
case DEMOVERSION: // latest always supported
case 0x0009: // older staff ghosts
case 0x000A: // older staff ghosts
case 0x000B: // older staff ghosts
break;
// too old, cannot support.
default:
Expand Down Expand Up @@ -3559,6 +3565,8 @@ void G_AddGhost(savebuffer_t *buffer, const char *defdemoname)
{
case DEMOVERSION: // latest always supported
case 0x0009: // older staff ghosts
case 0x000A: // older staff ghosts
case 0x000B: // older staff ghosts
break;
// too old, cannot support.
default:
Expand Down Expand Up @@ -3815,6 +3823,8 @@ staffbrief_t *G_GetStaffGhostBrief(UINT8 *buffer)
{
case DEMOVERSION: // latest always supported
case 0x0009: // older staff ghosts
case 0x000A: // older staff ghosts
case 0x000B: // older staff ghosts
break;

// too old, cannot support.
Expand Down

0 comments on commit 8326292

Please sign in to comment.