X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_gfx.pas;h=b137db3ee26bc1936bcb9729329e48deb621d072;hb=7dfe4bfbce7599a80e815b0f2f4c3c8fa9a171bb;hp=e74ddcc9068093eaf900b17ff7fed59c53d083d8;hpb=a892de2ecf5c04acbb4c5356f29cacbd07d11c3e;p=d2df-sdl.git diff --git a/src/game/g_gfx.pas b/src/game/g_gfx.pas index e74ddcc..b137db3 100644 --- a/src/game/g_gfx.pas +++ b/src/game/g_gfx.pas @@ -327,6 +327,9 @@ end; procedure g_GFX_Init(); begin //CreateCollideMap(); +{$IFDEF HEADLESS} + gpart_dbg_enabled := False; +{$ENDIF} end; @@ -1048,6 +1051,7 @@ var 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; @@ -1107,6 +1111,7 @@ var 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); @@ -1203,6 +1208,7 @@ var BaseVelX, BaseVelY: Single; l: Integer; begin + if not gpart_dbg_enabled then Exit; l := Length(Particles); if l = 0 then Exit; @@ -1262,6 +1268,7 @@ var DevY1, DevY2: Byte; l: Integer; begin + if not gpart_dbg_enabled then Exit; l := Length(Particles); if l = 0 then Exit; @@ -1342,6 +1349,7 @@ var a: Integer; l: Integer; begin + if not gpart_dbg_enabled then Exit; l := Length(Particles); if l = 0 then Exit; @@ -1430,6 +1438,7 @@ var DevY1, DevY2: Byte; l, liquidx: Integer; begin + if not gpart_dbg_enabled then Exit; l := Length(Particles); if l = 0 then Exit; @@ -1534,6 +1543,7 @@ procedure g_GFX_OnceAnim(X, Y: Integer; Anim: TAnimation; AnimType: Byte = 0); var find_id: DWORD; begin + if not gpart_dbg_enabled then Exit; if Anim = nil then Exit;