DEADSOFTWARE

adjust particle size according to current scale
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Thu, 21 Sep 2017 20:05:20 +0000 (23:05 +0300)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Thu, 21 Sep 2017 20:05:59 +0000 (23:05 +0300)
src/game/g_gfx.pas

index 9eb3c04dfca5c45ea5219031e1b1364c214b488a..42dfa8c8eae83811f7bb35f823ac7d7b47ea3e2d 100644 (file)
@@ -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);