mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
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:
parent
8f1ae6bacc
commit
2742f17290
2 changed files with 6 additions and 1 deletions
|
@ -3327,7 +3327,7 @@ cheat_for_port_credits:
|
||||||
nydim = (newvidmode==validmodecnt)?ydim:validmode[newvidmode].ydim;
|
nydim = (newvidmode==validmodecnt)?ydim:validmode[newvidmode].ydim;
|
||||||
nfs = newfullscreen;
|
nfs = newfullscreen;
|
||||||
nbpp = (newvidmode==validmodecnt)?bpp:validmode[newvidmode].bpp;
|
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)
|
if (setgamemode(nfs, nxdim, nydim, nbpp) < 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -578,6 +578,11 @@ int32_t G_LoadPlayer(int32_t spot)
|
||||||
|
|
||||||
G_ResetTimers();
|
G_ResetTimers();
|
||||||
|
|
||||||
|
#ifdef POLYMER
|
||||||
|
if (getrendermode() >= 4)
|
||||||
|
polymer_loadboard();
|
||||||
|
#endif
|
||||||
|
|
||||||
return(0);
|
return(0);
|
||||||
corrupt:
|
corrupt:
|
||||||
Bsprintf(tempbuf,"Save game file \"%s\" is corrupt or of the wrong version.",fnptr);
|
Bsprintf(tempbuf,"Save game file \"%s\" is corrupt or of the wrong version.",fnptr);
|
||||||
|
|
Loading…
Reference in a new issue