Require D1 cheat-unlock code before accepting cheats

This commit is contained in:
Kp 2015-06-28 20:04:25 +00:00
parent cd27af9e41
commit eeb644ad6f

View file

@ -1455,7 +1455,7 @@ static window_event_result FinalCheats()
{
gotcha = cheat_codes[i].stateptr;
#if defined(DXX_BUILD_DESCENT_I)
if (!cheats.enabled && cheats.*gotcha != cheats.enabled)
if (!cheats.enabled && gotcha != &game_cheats::enabled)
return window_event_result::ignored;
if (!cheats.enabled)
HUD_init_message_literal(HM_DEFAULT, TXT_CHEATS_ENABLED);