Commit 291b73a7 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

Duke3d: in EVENT_LOADGAME, give RETURN a default value equaling the...

Duke3d: in EVENT_LOADGAME, give RETURN a default value equaling the userbytever field from the savegame header and relax sv_loadheader() check
parent 931633f7
......@@ -747,7 +747,7 @@ int32_t G_LoadPlayer(savebrief_t & sv)
}
sv_postudload(); // ud.m_XXX = ud.XXX
VM_OnEvent(EVENT_LOADGAME, g_player[screenpeek].ps->i, screenpeek);
VM_OnEvent(EVENT_LOADGAME, g_player[screenpeek].ps->i, screenpeek, -1, h.userbytever);
kclose(fil);
return 0;
......@@ -1826,7 +1826,7 @@ int32_t sv_loadheader(buildvfs_kfd fil, int32_t spot, savehead_t *h)
return -2;
}
if (h->majorver != SV_MAJOR_VER || h->minorver != SV_MINOR_VER || h->bytever != BYTEVERSION || h->userbytever != ud.userbytever
if (h->majorver != SV_MAJOR_VER || h->minorver != SV_MINOR_VER || h->bytever != BYTEVERSION || h->userbytever < ud.userbytever
|| Bstrncasecmp(g_scriptFileName, h->scriptname, Bstrlen(h->scriptname)))
{
#ifndef DEBUGGINGAIDS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment