summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8ef31e9)
raw | patch | inline | side by side (parent: 8ef31e9)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Wed, 9 Jun 2021 11:23:11 +0000 (14:23 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 9 Jun 2023 07:44:48 +0000 (10:44 +0300) |
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 85f85894e86ff92a0226c26257836bd0f878f519..7e06f0b0f6fc8133cf752ab41dc9fe3e0fb4539e 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
conRegVar('dbg_ignore_level_bounds', @g_dbg_ignore_bounds, 'ignore level bounds', '', false);
- conRegVar('r_scale', @g_dbg_scale, 0.01, 100.0, 'render scale', '', false);
- conRegVar('r_resolution_scale', @r_pixel_scale, 0.01, 100.0, 'upscale factor', '', 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');
diff --git a/src/game/g_options.pas b/src/game/g_options.pas
index 420ef52ecedd2e51f9e8d0d5ec33bd1d07053f0e..ecfa4e79b62909d8a68a7fb066c1bec4ed86fcc4 100644 (file)
--- a/src/game/g_options.pas
+++ b/src/game/g_options.pas
gsItemRespawnTime: Word = 60;
gsWarmupTime: Word = 30;
+{$IFDEF HEADLESS}
+ e_NoGraphics: Boolean = True;
+{$ELSE}
+ e_NoGraphics: Boolean = False;
+{$ENDIF}
+ e_FastScreenshots: Boolean = true; // it's REALLY SLOW with `false`
+ g_dbg_scale: Single = 1.0;
+ r_pixel_scale: Single = 1.0;
+
implementation
uses
{$ENDIF}
e_log, e_input, g_console, g_window, g_sound, g_gfx, g_player, Math,
g_map, g_net, g_netmaster, SysUtils, CONFIG, g_game, g_main, e_texture,
- g_items, wadreader, r_graphics, g_touch, envvars, g_system;
+ g_items, wadreader, g_touch, envvars, g_system;
var
machine: Integer;
conRegVar('r_texfilter', @gTextureFilter, '', '');
conRegVar('r_npot', @glNPOTOverride, '', '');
conRegVar('r_interp', @gLerpActors, '', 'interpolate actors');
+ conRegVar('r_scale', @g_dbg_scale, 0.01, 100.0, 'render scale', '', false);
+ conRegVar('r_resolution_scale', @r_pixel_scale, 0.01, 100.0, 'upscale factor', '', false);
(* Sound *)
conRegVar('s_nosound', @gNoSound, '', '');
diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index 7a719b606d8b8446ef07f255519aa292bf126f67..06bfb14fae180618bc2cc93e6e5bed46ab4b678f 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
valres: Word;
{$ENDIF}
begin
-{$IFDEF HEADLESS}
- e_NoGraphics := true;
-{$ENDIF}
idx := 1;
while (idx <= ParamCount) do
index 955bdec20c6554ff098df35bc54bb2c7c358b3ca..293e3aa174f0171f26be3f375135519062fa81a4 100644 (file)
{$INCLUDE ../nogl/noGLuses.inc}
SysUtils, Classes, Math,
utils,
- g_base, r_graphics,
+ g_base, r_graphics, g_options,
g_game,
g_gfx
;
index 5bd4aee4f8a610310a43142106f3f6ce6dc7eac2..f7b7fd3e299e25af9357defbb18fe5e13da57abd 100644 (file)
var
e_Colors: TRGB;
- e_NoGraphics: Boolean = False;
- e_FastScreenshots: Boolean = true; // it's REALLY SLOW with `false`
- g_dbg_scale: Single = 1.0;
- r_pixel_scale: Single = 1.0;
-
implementation
uses
- paszlib, crc, utils;
-
+ paszlib, crc, utils, g_options;
type
TTexture = record
index 45f8dd33d17427a2bb1e375d330d18a9eb2bff35..9a747455ecc9e5ffc71d9e04d4682c509212b3cd 100644 (file)
uses
SysUtils, Classes, Math,
- r_graphics,
+ r_graphics, g_options,
MAPDEF,
g_base, g_basic, g_game, g_phys,
g_monsters
index c3c75666ac2e867c8644b9bc3e1ceeeecd6607f4..f96cfb0aaf312af218fb256e80d92f522093255b 100644 (file)
uses
{$INCLUDE ../nogl/noGLuses.inc}
SysUtils, Classes, Math, utils,
- r_graphics,
+ r_graphics, g_options,
g_base, g_basic, g_textures, g_game
;