GIT
/
REPO
/
FRED-BOY
Projects
/
d2df-sdl.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build "visible panels set" before rendering the frame
[d2df-sdl.git]
/
src
/
game
/
g_game.pas
diff --git
a/src/game/g_game.pas
b/src/game/g_game.pas
index 811148cf456bfb8fb4a54703ca79ebf0ad567361..66c1edc5688a048a6506442636133df48414fdf6 100644
(file)
--- a/
src/game/g_game.pas
+++ b/
src/game/g_game.pas
@@
-2512,6
+2512,7
@@
begin
glTranslatef(-x, -y, 0);
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();
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_Monsters_DrawHealth();
g_Player_DrawHealth();
end;
+ g_Map_ResetPVP();
glPopMatrix();
end;
glPopMatrix();
end;
@@
-2626,6
+2628,8
@@
begin
glTranslatef(a, b+p.IncCam, 0);
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();
g_Map_DrawPanels(PANEL_BACK);
g_Map_DrawPanels(PANEL_STEP);
g_Items_Draw();
@@
-2671,6
+2675,7
@@
begin
}
glPopMatrix();
}
glPopMatrix();
+ g_Map_ResetPVP();
p.DrawPain();
p.DrawPickup();
p.DrawPain();
p.DrawPickup();
@@
-6488,7
+6493,12
@@
begin
// Debug mode:
s := Find_Param_Value(pars, '--debug');
if (s <> '') then
// Debug mode:
s := Find_Param_Value(pars, '--debug');
if (s <> '') then
+ begin
g_Game_SetDebugMode();
g_Game_SetDebugMode();
+ s := Find_Param_Value(pars, '--netdump');
+ if (s <> '') then
+ NetDump := True;
+ end;
// Connect when game loads
ip := Find_Param_Value(pars, '-connect');
// Connect when game loads
ip := Find_Param_Value(pars, '-connect');
DEADSOFTWARE 2012-2025