summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ae9f71c)
raw | patch | inline | side by side (parent: ae9f71c)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 17 Jan 2022 17:16:31 +0000 (20:16 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 9 Jun 2023 07:53:48 +0000 (10:53 +0300) |
diff --git a/src/game/g_gfx.pas b/src/game/g_gfx.pas
index 29b9c2240b0e6be7746570c3cba5c6a1a397c2f8..00630f3f5fa20b7677214c601e27b36ee4c0dc3c 100644 (file)
--- a/src/game/g_gfx.pas
+++ b/src/game/g_gfx.pas
implementation
uses
- g_map, g_panel, g_basic, Math, r_animations,
+ g_map, g_panel, g_basic, Math,
g_options, g_console, SysUtils, g_triggers, MAPDEF,
g_game, g_language, g_net, utils, xprofiler;
diff --git a/src/game/g_items.pas b/src/game/g_items.pas
index 6ff6b86e6010e11caf2ba007fc645c388fe61c05..7a1fd513a1a3aebdc0b1f0a133e152f5c93c76a7 100644 (file)
--- a/src/game/g_items.pas
+++ b/src/game/g_items.pas
uses
Math,
- g_basic, g_sound, g_gfx, g_map, r_animations, r_gfx,
+ g_basic, g_sound, g_gfx, g_map, r_gfx,
g_game, g_triggers, g_console, g_player, g_net, g_netmsg,
e_log, g_options,
g_grid, binheap, idpool, utils, xstreams;
diff --git a/src/game/g_map.pas b/src/game/g_map.pas
index 7bcb5b1379320f5d773760219db4c69085ece639..f62f761dea919088ac2be404fe32b4c35e4075f9 100644 (file)
--- a/src/game/g_map.pas
+++ b/src/game/g_map.pas
uses
SysUtils, Classes, mempool,
- g_base, r_graphics, g_basic, MAPDEF, g_textures,
+ g_base, g_basic, MAPDEF, g_textures,
g_phys, utils, g_panel, g_grid, md5, binheap, xprofiler, xparser, xdynrec;
type
uses
e_input, e_log, e_res, g_items, g_gfx, g_console,
g_weapons, g_game, g_sound, e_sound, CONFIG,
- g_options, g_triggers, g_player, r_textures, r_animations,
+ g_options, g_triggers, g_player,
Math, g_monsters, g_saveload, g_language, g_netmsg,
sfs, xstreams, hashtable, wadreader,
g_res_downloader;
index fa37ff9f2a7f5de944ed53c026b27232cd3aea55..b450139ee2779e5dee6dc15fb44d09c88c465074 100644 (file)
--- a/src/game/g_monsters.pas
+++ b/src/game/g_monsters.pas
implementation
uses
- e_log, g_sound, g_gfx, g_player, g_game, r_textures, r_animations, r_gfx,
+ e_log, g_sound, g_gfx, g_player, g_game, r_gfx,
g_weapons, g_triggers, g_items, g_options,
g_console, g_map, Math, g_menu, wadreader,
g_language, g_netmsg, idpool, utils, xstreams;
diff --git a/src/game/g_netmsg.pas b/src/game/g_netmsg.pas
index fb32fa2b4f40361aa7b52809167cdb2c83c3487a..6d4f5c1d3cb188e4a737738e00bfb1bdca804677 100644 (file)
--- a/src/game/g_netmsg.pas
+++ b/src/game/g_netmsg.pas
implementation
uses
- Math, ENet, e_input, e_log, g_base, g_basic, r_animations, r_gfx,
+ Math, ENet, e_input, e_log, g_base, g_basic, r_gfx,
g_textures, g_gfx, g_sound, g_console, g_options,
g_game, g_player, g_map, g_panel, g_items, g_weapons, g_phys, g_gui,
g_language, g_monsters, g_netmaster, utils, wadreader, MAPDEF;
diff --git a/src/game/g_player.pas b/src/game/g_player.pas
index 8aa0a7df42ca1edaefc70d9a825660cc5e41d8fc..6aa7323bcc01b75c1632346332229302a93d6d3d 100644 (file)
--- a/src/game/g_player.pas
+++ b/src/game/g_player.pas
{$IFDEF USE_MEMPOOL}mempool,{$ENDIF}
g_base, g_playermodel, g_basic, g_textures,
g_weapons, g_phys, g_sound, g_saveload, MAPDEF,
- g_panel, r_playermodel;
+ g_panel;
const
KEY_LEFT = 1;
{$IFDEF ENABLE_HOLMES}
g_holmes,
{$ENDIF}
- e_log, g_map, g_items, g_console, g_gfx, Math, r_textures, r_animations, r_gfx,
+ e_log, g_map, g_items, g_console, g_gfx, Math, r_playermodel, r_gfx,
g_options, g_triggers, g_menu, g_game, g_grid, e_res,
wadreader, g_monsters, CONFIG, g_language,
g_net, g_netmsg,
index e2db8d47acabb897be51d738f0ef854794355c55..142401547a3c6b77d9d01bacd8b1bb13f2b74fde 100644 (file)
interface
-uses
- MAPDEF, g_textures, g_base, g_basic, g_weapons, r_graphics, utils, g_gfx,
- ImagingTypes, Imaging, ImagingUtility;
+ uses MAPDEF, g_textures, g_base, g_basic, g_weapons, utils, g_gfx;
const
A_STAND = 0;
implementation
uses
- g_sound, g_console, SysUtils, g_player, CONFIG, r_textures, r_animations,
+ g_sound, g_console, SysUtils, g_player, CONFIG,
e_sound, g_options, g_map, Math, e_log, wadreader;
const
end;
end;
-function g_PlayerModel_CalcGibSize (pData: Pointer; dataSize, x, y, w, h: Integer): TRectWH;
- var i, j: Integer; done: Boolean; img: TImageData;
-
- function IsVoid (i, j: Integer): Boolean;
- begin
- result := Byte((PByte(img.bits) + (y+j)*img.width*4 + (x+i)*4 + 3)^) = 0
- end;
-
-begin
- InitImage(img);
- assert(LoadImageFromMemory(pData, dataSize, img));
-
- (* trace x from right to left *)
- done := false; i := 0;
- while not done and (i < w) do
- begin
- j := 0;
- while (j < h) and IsVoid(i, j) do inc(j);
- done := (j < h) and (IsVoid(i, j) = false);
- result.x := i;
- inc(i);
- end;
-
- (* trace y from up to down *)
- done := false; j := 0;
- while not done and (j < h) do
- begin
- i := 0;
- while (i < w) and IsVoid(i, j) do inc(i);
- done := (i < w) and (IsVoid(i, j) = false);
- result.y := j;
- inc(j);
- end;
-
- (* trace x from right to left *)
- done := false; i := w - 1;
- while not done and (i >= 0) do
- begin
- j := 0;
- while (j < h) and IsVoid(i, j) do inc(j);
- done := (j < h) and (IsVoid(i, j) = false);
- result.width := i - result.x + 1;
- dec(i);
- end;
-
- (* trace y from down to up *)
- done := false; j := h - 1;
- while not done and (j >= 0) do
- begin
- i := 0;
- while (i < w) and IsVoid(i, j) do inc(i);
- done := (i < w) and (IsVoid(i, j) = false);
- result.height := j - result.y + 1;
- dec(j);
- end;
-
- FreeImage(img);
-end;
-
function g_PlayerModel_Load(FileName: string): Boolean;
var
ID: DWORD;
index ae951fc94258fd3f930fa18e2355a4c7a08155fd..8190ea3df814d0b7300d2a6f85fe579681497825 100644 (file)
--- a/src/game/g_textures.pas
+++ b/src/game/g_textures.pas
uses
SysUtils, Classes,
{$IFDEF USE_MEMPOOL}mempool,{$ENDIF}
- g_base, r_graphics, MAPDEF, ImagingTypes, Imaging, ImagingUtility;
+ g_base, MAPDEF;
type
TLevelTexture = record
implementation
uses
- g_game, e_log, g_basic, g_console, wadreader, r_animations,
+ g_game, e_log, g_basic, g_console, wadreader,
g_language, utils, xstreams;
constructor TAnimationState.Create (aloop: Boolean; aspeed: Byte; len: Integer);
index 422f9368c6e6a546377ec22d6a6d57e15d189b58..e37dff59fe5e45d1a9507c901bc3bd2397d4a16b 100644 (file)
--- a/src/game/g_triggers.pas
+++ b/src/game/g_triggers.pas
uses
Math,
- g_player, g_map, g_panel, g_gfx, g_game, r_animations, r_gfx,
+ g_player, g_map, g_panel, g_gfx, g_game, r_gfx,
g_console, g_monsters, g_items, g_phys, g_weapons,
wadreader, e_log, g_language, e_res,
g_options, g_net, g_netmsg, utils, xparser, xstreams;
diff --git a/src/game/g_weapons.pas b/src/game/g_weapons.pas
index fc539280d670a88d3865bcced28f874febf908e1..43079841001091d1f1366f7905fd0f090a5f1b0f 100644 (file)
--- a/src/game/g_weapons.pas
+++ b/src/game/g_weapons.pas
uses
Math, g_map, g_player, g_gfx, g_sound, g_panel,
- g_console, g_options, g_game, r_textures, r_animations, r_gfx,
+ g_console, g_options, g_game, r_gfx,
g_triggers, MAPDEF, e_log, g_monsters, g_saveload,
g_language, g_netmsg, g_grid,
geom, binheap, hashtable, utils, xstreams;