X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_gfx.pas;h=52c3b24890adb90e6ab452556ad93b65f220a654;hb=3d8489bb2d74d08d3a9ccad06eea7e8fb7d4038d;hp=ff7089b46f31177abfc89971a3f66a28b8838e36;hpb=c16bfd4a6ac97b3ea5b3300a0e6eed93d44ace87;p=d2df-sdl.git diff --git a/src/game/g_gfx.pas b/src/game/g_gfx.pas index ff7089b..52c3b24 100644 --- a/src/game/g_gfx.pas +++ b/src/game/g_gfx.pas @@ -1617,7 +1617,6 @@ end; procedure g_GFX_Draw (); var a, len: Integer; - scaled: Boolean; begin if not gpart_dbg_enabled then exit; @@ -1631,15 +1630,13 @@ begin glBegin(GL_POINTS); - scaled := (g_dbg_scale <> 1.0); - len := High(Particles); for a := 0 to len do begin with Particles[a] do begin if not alive then continue; - if scaled or ((x >= sX) and (y >= sY) and (x <= sX+sWidth) and (sY <= sY+sHeight)) then + if (x >= sX) and (y >= sY) and (x <= sX+sWidth) and (sY <= sY+sHeight) then begin glColor4ub(red, green, blue, alpha); glVertex2f(x+0.37, y+0.37);