mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Quickplay: +Alt starts the map with real start positions
git-svn-id: https://svn.eduke32.com/eduke32@1069 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
3776d580eb
commit
87f8eb2438
1 changed files with 10 additions and 3 deletions
|
@ -8842,8 +8842,12 @@ static void Keys2d3d(void)
|
||||||
|
|
||||||
keystatus[KEYSC_P] = 0;
|
keystatus[KEYSC_P] = 0;
|
||||||
|
|
||||||
updatesector(posx, posy, &cursectnum);
|
if (!eitherALT)
|
||||||
if (cursectnum >= 0)
|
updatesector(posx, posy, &cursectnum);
|
||||||
|
else
|
||||||
|
updatesector(startposx, startposy, &startsectnum);
|
||||||
|
|
||||||
|
if ((!eitherALT && cursectnum >= 0) || (eitherALT && startsectnum >= 0))
|
||||||
{
|
{
|
||||||
if (tp_lastkeypresstime+120*4 >= totalclock)
|
if (tp_lastkeypresstime+120*4 >= totalclock)
|
||||||
message("Please wait while starting Eduke32...");
|
message("Please wait while starting Eduke32...");
|
||||||
|
@ -8867,7 +8871,10 @@ static void Keys2d3d(void)
|
||||||
|
|
||||||
fixspritesectors(); //Do this before saving!
|
fixspritesectors(); //Do this before saving!
|
||||||
ExtPreSaveMap();
|
ExtPreSaveMap();
|
||||||
saveboard("autosave.map",&posx,&posy,&posz,&ang,&cursectnum);
|
if (eitherALT)
|
||||||
|
saveboard("autosave.map",&startposx,&startposy,&startposz,&startang,&startsectnum);
|
||||||
|
else
|
||||||
|
saveboard("autosave.map",&posx,&posy,&posz,&ang,&cursectnum);
|
||||||
message("Board saved to AUTOSAVE.MAP. Starting Eduke32...");
|
message("Board saved to AUTOSAVE.MAP. Starting Eduke32...");
|
||||||
|
|
||||||
Bmemset(&sinfo, 0, sizeof(sinfo));
|
Bmemset(&sinfo, 0, sizeof(sinfo));
|
||||||
|
|
Loading…
Reference in a new issue