From 87f8eb2438d05d5f941ae4895fb6d0bd665b4fd9 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Tue, 16 Sep 2008 15:32:59 +0000 Subject: [PATCH] Quickplay: +Alt starts the map with real start positions git-svn-id: https://svn.eduke32.com/eduke32@1069 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/astub.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 51001d79b..e7c2c1511 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -8842,8 +8842,12 @@ static void Keys2d3d(void) keystatus[KEYSC_P] = 0; - updatesector(posx, posy, &cursectnum); - if (cursectnum >= 0) + if (!eitherALT) + updatesector(posx, posy, &cursectnum); + else + updatesector(startposx, startposy, &startsectnum); + + if ((!eitherALT && cursectnum >= 0) || (eitherALT && startsectnum >= 0)) { if (tp_lastkeypresstime+120*4 >= totalclock) message("Please wait while starting Eduke32..."); @@ -8867,7 +8871,10 @@ static void Keys2d3d(void) fixspritesectors(); //Do this before saving! 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..."); Bmemset(&sinfo, 0, sizeof(sinfo));