DEADSOFTWARE

build "visible panels set" before rendering the frame
[d2df-sdl.git] / src / game / g_game.pas
index 68b2ee4a987114e6ad98e41b8fb6518357491a37..66c1edc5688a048a6506442636133df48414fdf6 100644 (file)
@@ -2512,6 +2512,7 @@ begin
 
   glTranslatef(-x, -y, 0);
 
+  g_Map_BuildPVP(sX, sY, sX+sWidth-1, sY+sHeight-1);
   g_Map_DrawPanels(PANEL_BACK);
   g_Map_DrawPanels(PANEL_STEP);
   g_Items_Draw();
@@ -2533,6 +2534,7 @@ begin
     g_Monsters_DrawHealth();
     g_Player_DrawHealth();
   end;
+  g_Map_ResetPVP();
 
   glPopMatrix();
 end;
@@ -2626,6 +2628,8 @@ begin
 
   glTranslatef(a, b+p.IncCam, 0);
 
+  g_Map_BuildPVP(sX, sY, sX+sWidth-1, sY+sHeight-1);
+
   g_Map_DrawPanels(PANEL_BACK);
   g_Map_DrawPanels(PANEL_STEP);
   g_Items_Draw();
@@ -2671,6 +2675,7 @@ begin
   }
 
   glPopMatrix();
+  g_Map_ResetPVP();
 
   p.DrawPain();
   p.DrawPickup();
@@ -6485,9 +6490,6 @@ var
 begin
   Parse_Params(pars);
 
-  s := Find_Param_Value(pars, '--opengl-dump-exts');
-  if s <> '' then gwin_dump_extensions := true; // sorry
-
 // Debug mode:
   s := Find_Param_Value(pars, '--debug');
   if (s <> '') then