1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 06:28:30 +02:00

Remove time trial replay menu stack popping

It turns out this entire chunk of code is simply unneeded (and is
actively harmful) since when we're done with the time trial,
quittomenu() gets called, and that removes the previous stack frame
anyway.

I'm guessing that I added this code, then added quittomenu(), then
didn't consider how this code and quittomenu() would mix. But anyways,
this bug is fixed.

Fixes #714.
This commit is contained in:
Misa 2021-04-13 09:07:51 -07:00 committed by Ethan Lee
parent a4999c5308
commit 3728edc335

View File

@ -1580,15 +1580,6 @@ static void menuactionpress(void)
map.nexttowercolour();
break;
case 1:
//Ok but first quickly remove the last stack frame to prevent piling up timetrialcomplete stack frames
if (game.menustack.empty())
{
puts("Error: menu stack is empty!");
}
else
{
game.menustack.pop_back();
}
//duplicate the above based on given time trial level!
if (game.timetriallevel == 0) //space station 1
{