mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 20:46:47 +03:00
Move savegames to separate folder, organize savegame code
This commit is contained in:
parent
ebb23143f7
commit
6193a758ff
17 changed files with 127 additions and 163 deletions
|
@ -503,21 +503,21 @@ void JumpToLevel(int levelNum)
|
|||
|
||||
int GetSecretsCount()
|
||||
{
|
||||
return Savegame.Level.Secrets;
|
||||
return Statistics.Level.Secrets;
|
||||
}
|
||||
|
||||
void SetSecretsCount(int secretsNum)
|
||||
{
|
||||
if (secretsNum > 255)
|
||||
return;
|
||||
Savegame.Level.Secrets = secretsNum;
|
||||
Statistics.Level.Secrets = secretsNum;
|
||||
}
|
||||
|
||||
void AddOneSecret()
|
||||
{
|
||||
if (Savegame.Level.Secrets >= 255)
|
||||
if (Statistics.Level.Secrets >= 255)
|
||||
return;
|
||||
Savegame.Level.Secrets++;
|
||||
Statistics.Level.Secrets++;
|
||||
PlaySecretTrack();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue