gExit := 0;
end;
+procedure drawTime(X, Y: Integer); inline;
+begin
+ e_TextureFontPrint(x, y,
+ Format('%d:%.2d:%.2d', [
+ gTime div 1000 div 3600,
+ (gTime div 1000 div 60) mod 60,
+ gTime div 1000 mod 60
+ ]),
+ gStdFont);
+end;
+
procedure DrawStat();
var
pc, x, y, w, h: Integer;
e_DrawFillQuad(x, y, x+w-1, y+h-1, 64, 64, 64, 32);
e_DrawQuad(x, y, x+w-1, y+h-1, 255, 127, 0);
+ drawTime(x+w-78, y+8);
+
wad := g_ExtractWadNameNoPath(gMapInfo.Map);
map := g_ExtractFileName(gMapInfo.Map);
mapstr := wad + ':\' + map + ' - ' + gMapInfo.Name;
end;
if gGameOn and gShowTime and (gGameSettings.GameType in [GT_CUSTOM, GT_SERVER, GT_CLIENT]) then
- e_TextureFontPrint(gScreenWidth-72, 0,
- Format('%d:%.2d:%.2d', [gTime div 1000 div 3600, (gTime div 1000 div 60) mod 60, gTime div 1000 mod 60]),
- gStdFont);
+ drawTime(gScreenWidth-72, gScreenHeight-16);
if gGameOn then drawProfilers();
end;
procedure g_GFX_Init();
begin
//CreateCollideMap();
+{$IFDEF HEADLESS}
+ gpart_dbg_enabled := False;
+{$ENDIF}
end;
DevY1, DevY2: Byte;
l: Integer;
begin
+ if not gpart_dbg_enabled then Exit;
l := Length(Particles);
if l = 0 then exit;
if Count > l then Count := l;
CRnd: Byte;
CC: SmallInt;
begin
+ if not gpart_dbg_enabled then Exit;
if Kind = BLOOD_SPARKS then
begin
g_GFX_SparkVel(fX, fY, 2 + Random(2), -VX div 2, -VY div 2, DevX, DevY);
BaseVelX, BaseVelY: Single;
l: Integer;
begin
+ if not gpart_dbg_enabled then Exit;
l := Length(Particles);
if l = 0 then
Exit;
DevY1, DevY2: Byte;
l: Integer;
begin
+ if not gpart_dbg_enabled then Exit;
l := Length(Particles);
if l = 0 then
Exit;
a: Integer;
l: Integer;
begin
+ if not gpart_dbg_enabled then Exit;
l := Length(Particles);
if l = 0 then
Exit;
DevY1, DevY2: Byte;
l, liquidx: Integer;
begin
+ if not gpart_dbg_enabled then Exit;
l := Length(Particles);
if l = 0 then
Exit;
var
find_id: DWORD;
begin
+ if not gpart_dbg_enabled then Exit;
if Anim = nil then
Exit;