diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index d98227aa36faed7685df9c144c9848c0ebd783bb..f4882b6bdbc95b4069ef439cf192f1da7cb0a4a9 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
if g_Game_IsNet then exit;
if not gDebugMode then
begin
- if not gCheats then exit;
+ //if not gCheats then exit;
if not (gGameSettings.GameType in [GT_SINGLE, GT_CUSTOM]) then exit;
- if (gGameSettings.GameMode <> GM_COOP) then exit;
+ if not (gGameSettings.GameMode in [GM_COOP, GM_SINGLE]) then exit;
end;
result := true;
end;
mon: TMonster;
begin
// Êîìàíäû îòëàäî÷íîãî ðåæèìà:
- if gDebugMode then
+ if {gDebugMode}conIsCheatsEnabled then
begin
cmd := LowerCase(P[0]);
if cmd = 'd_window' then
f, a: Integer;
plr: TPlayer;
begin
- if (not gGameOn) or (not gCheats) or ((gGameSettings.GameType <> GT_SINGLE) and
- (gGameSettings.GameMode <> GM_COOP) and (not gDebugMode)) or g_Game_IsNet then
+ if (not gGameOn) or (not conIsCheatsEnabled) then
begin
g_Console_Add('not available');
exit;