mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-08 18:09:45 +01: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:
parent
a4999c5308
commit
3728edc335
1 changed files with 0 additions and 9 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue