Skip to content

Commit affc2ce

Browse files
committed
BB King mode is now a toggle
1 parent 0837ab5 commit affc2ce

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/bflib_sndlib.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,6 @@ extern "C" SoundSFXID get_sample_sfxid(SoundSmplTblID smptbl_id, SoundBankID ban
673673
return g_banks[bank_id][smptbl_id].sfx_id;
674674
}
675675

676-
extern "C" void enable_bbking_mode() {
677-
g_bb_king_mode |= true;
676+
extern "C" void toggle_bbking_mode() {
677+
g_bb_king_mode = !g_bb_king_mode;
678678
}

src/bflib_sndlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ SoundVolume GetCurrentSoundMasterVolume(void);
4848
void SetSampleVolume(SoundEmitterID, SoundSmplTblID, SoundVolume);
4949
void SetSamplePan(SoundEmitterID, SoundSmplTblID, SoundPan);
5050
void SetSamplePitch(SoundEmitterID, SoundSmplTblID, SoundPitch);
51-
void enable_bbking_mode(void);
51+
void toggle_bbking_mode(void);
5252

5353
#ifdef __cplusplus
5454
}

src/front_easter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void input_eastegg(void)
168168
state = input_eastegg_keycodes(&length, allow, &eastegg_bbking_codes);
169169
if (length == eastegg_bbking_codes.length) {
170170
play_non_3d_sample(159);
171-
enable_bbking_mode();
171+
toggle_bbking_mode();
172172
}
173173
}
174174
// Maintain the SKEKSIS cheat

0 commit comments

Comments
 (0)