Skip to content

Commit 3f4a3e8

Browse files
committed
Make konami code actually do something
1 parent e0a1c42 commit 3f4a3e8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/intro/title.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ void run_konami_code()
124124
if (kc_table[title.kc_pos] == -1)
125125
{
126126
NXE::Sound::SoundManager::getInstance()->playSfx(NXE::Sound::SFX::SND_MENU_SELECT);
127+
game.debug.god = 1;
127128
title.kc_pos = 0;
128129
}
129130
}

src/player.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,10 +1263,13 @@ void hurtplayer(int damage)
12631263
if (!player || !player->hp)
12641264
return;
12651265
#if defined(DEBUG)
1266-
if (game.debug.god || inputs[DEBUG_MOVE_KEY])
1266+
if (inputs[DEBUG_MOVE_KEY])
12671267
return;
12681268
#endif
12691269

1270+
if (game.debug.god)
1271+
return;
1272+
12701273
if (player->hurt_time)
12711274
return;
12721275

0 commit comments

Comments
 (0)