X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_game.pas;h=f4882b6bdbc95b4069ef439cf192f1da7cb0a4a9;hb=02e6aa22f21119c1a329e7b5321b94bf9fe9d4d7;hp=b0f64563e8cfd2ecb1a3ad1ef39aaebde48a7469;hpb=48a0fec9c3b27ded8cfd9e669257329a475189b0;p=d2df-sdl.git diff --git a/src/game/g_game.pas b/src/game/g_game.pas index b0f6456..f4882b6 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -360,9 +360,9 @@ begin 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; @@ -2750,7 +2750,7 @@ begin //TODO: lights should be in separate grid, i think // but on the other side: grid may be slower for dynlights, as their lifetime is short - if (not g_playerLight) or (not gwin_has_stencil) or (g_dynLightCount < 1) then exit; + if (not gwin_k8_enable_light_experiments) or (not gwin_has_stencil) or (g_dynLightCount < 1) then exit; // rendering mode //ambColor := gCurrentMap['light_ambient'].rgba; @@ -5205,7 +5205,7 @@ var mon: TMonster; begin // Êîìàíäû îòëàäî÷íîãî ðåæèìà: - if gDebugMode then + if {gDebugMode}conIsCheatsEnabled then begin cmd := LowerCase(P[0]); if cmd = 'd_window' then @@ -5339,8 +5339,7 @@ var 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; @@ -7226,4 +7225,7 @@ begin conRegVar('dbg_holmes', @g_holmes_enabled, 'enable/disable Holmes', 'Holmes', true); conRegVar('dbg_scale', @g_dbg_scale, 0.01, 100.0, 'experimental deBUG scale mode', '', false); + + conRegVar('light_enabled', @gwin_k8_enable_light_experiments, 'enable/disable dynamic lighting', 'lighting'); + conRegVar('light_player_halo', @g_playerLight, 'enable/disable player halo', 'player light halo'); end.