mirror of
https://github.com/mwpenny/portal64-still-alive.git
synced 2024-11-23 20:39:41 +00:00
Dynamically get level count for all levels cheat
This commit is contained in:
parent
bf482724bc
commit
7e699a4324
@ -5,6 +5,7 @@
|
||||
#include "../scene/scene.h"
|
||||
#include "../build/src/audio/clips.h"
|
||||
#include "../savefile/savefile.h"
|
||||
#include "../levels/levels.h"
|
||||
|
||||
struct CheatCodePattern gCheatCodes[CheatCodeCount] = {
|
||||
[CheatCodeUnlockGun] = {
|
||||
@ -46,7 +47,7 @@ void cheatCodeApply(enum CheatCode cheat) {
|
||||
playerToggleInvincibility(&gScene.player);
|
||||
break;
|
||||
case CheatCodeAllLevels:
|
||||
savefileMarkChapterProgress(7);
|
||||
savefileMarkChapterProgress(levelCount() - 1);
|
||||
break;
|
||||
case CheatCodeCount:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user