mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix staffghost loading for old demo version
This commit is contained in:
parent
caec64192d
commit
8326292a3f
1 changed files with 10 additions and 0 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue