Proper savegame loading and vidmode switching from the menu.

git-svn-id: https://svn.eduke32.com/eduke32@1276 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-03-28 11:20:05 +00:00
parent 8f1ae6bacc
commit 2742f17290
2 changed files with 6 additions and 1 deletions

View file

@ -3327,7 +3327,7 @@ cheat_for_port_credits:
nydim = (newvidmode==validmodecnt)?ydim:validmode[newvidmode].ydim;
nfs = newfullscreen;
nbpp = (newvidmode==validmodecnt)?bpp:validmode[newvidmode].bpp;
nrend = (vidsets[newvidset] & 0x20000) ? (nbpp==8?2:3) : 0;
nrend = (vidsets[newvidset] & 0x20000) ? (nbpp==8?2:glrendmode) : 0;
if (setgamemode(nfs, nxdim, nydim, nbpp) < 0)
{

View file

@ -578,6 +578,11 @@ int32_t G_LoadPlayer(int32_t spot)
G_ResetTimers();
#ifdef POLYMER
if (getrendermode() >= 4)
polymer_loadboard();
#endif
return(0);
corrupt:
Bsprintf(tempbuf,"Save game file \"%s\" is corrupt or of the wrong version.",fnptr);