mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Don't allow setting best game deaths in custom levels
Custom levels shouldn't touch main game save data, and best game deaths is no exception. I also added a MAKEANDPLAY ifdef just to be safe.
This commit is contained in:
parent
a52547b60d
commit
52dc914a31
1 changed files with 11 additions and 6 deletions
|
@ -2672,17 +2672,22 @@ void Game::updatestate(void)
|
||||||
unlocknum(19);
|
unlocknum(19);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bestgamedeaths == -1)
|
#ifndef MAKEANDPLAY
|
||||||
|
if (!map.custommode)
|
||||||
{
|
{
|
||||||
bestgamedeaths = deathcounts;
|
if (bestgamedeaths == -1)
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (deathcounts < bestgamedeaths)
|
|
||||||
{
|
{
|
||||||
bestgamedeaths = deathcounts;
|
bestgamedeaths = deathcounts;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (deathcounts < bestgamedeaths)
|
||||||
|
{
|
||||||
|
bestgamedeaths = deathcounts;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (bestgamedeaths > -1) {
|
if (bestgamedeaths > -1) {
|
||||||
if (bestgamedeaths <= 500) {
|
if (bestgamedeaths <= 500) {
|
||||||
|
|
Loading…
Reference in a new issue