diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index b0f64563e8cfd2ecb1a3ad1ef39aaebde48a7469..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 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 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;
end;
result := true;
end;
//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
//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;
// rendering mode
//ambColor := gCurrentMap['light_ambient'].rgba;
mon: TMonster;
begin
// Êîìàíäû îòëàäî÷íîãî ðåæèìà:
mon: TMonster;
begin
// Êîìàíäû îòëàäî÷íîãî ðåæèìà:
- if gDebugMode then
+ if {gDebugMode}conIsCheatsEnabled then
begin
cmd := LowerCase(P[0]);
if cmd = 'd_window' then
begin
cmd := LowerCase(P[0]);
if cmd = 'd_window' then
f, a: Integer;
plr: TPlayer;
begin
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;
begin
g_Console_Add('not available');
exit;
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('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.
end.