From: Ketmar Dark Date: Thu, 21 Sep 2017 20:05:20 +0000 (+0300) Subject: adjust particle size according to current scale X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=d9595eef7d9111360b51793f29d885047a7c3a64;p=d2df-sdl.git adjust particle size according to current scale --- diff --git a/src/game/g_gfx.pas b/src/game/g_gfx.pas index 9eb3c04..42dfa8c 100644 --- a/src/game/g_gfx.pas +++ b/src/game/g_gfx.pas @@ -1627,7 +1627,10 @@ begin if (Particles <> nil) then begin glDisable(GL_TEXTURE_2D); - glPointSize(2); + if (g_dbg_scale < 0.6) then glPointSize(1) + else if (g_dbg_scale > 1.3) then glPointSize(g_dbg_scale+1) + else glPointSize(2); + glDisable(GL_POINT_SMOOTH); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);