mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
[sound] Remove a pile of unwanted sound.h includes
This does mean that the gl and sw renderers can no longer call S_ExtraUpdate, but really, they shouldn't be anyway. And I seem to remember it not really helping (been way too long since quake ran that slowly for me).
This commit is contained in:
parent
6c33fbb850
commit
e1a0bde5ee
15 changed files with 10 additions and 47 deletions
|
@ -47,6 +47,8 @@
|
|||
|
||||
#include "netmain.h"
|
||||
|
||||
//FIXME these should not be here!!!
|
||||
#include "../nq/include/client.h"
|
||||
#include "../nq/include/server.h"
|
||||
|
||||
// This is enables a simple IP banning mechanism
|
||||
|
|
|
@ -39,14 +39,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "QF/cvar.h"
|
||||
#include "QF/mathlib.h"
|
||||
#include "QF/qargs.h"
|
||||
#include "QF/render.h"
|
||||
#include "QF/skin.h"
|
||||
#include "QF/sound.h"
|
||||
#include "QF/sys.h"
|
||||
#include "QF/vid.h"
|
||||
|
||||
#include "QF/scene/entity.h"
|
||||
|
||||
|
|
|
@ -39,16 +39,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "QF/cvar.h"
|
||||
#include "QF/draw.h"
|
||||
#include "QF/mathlib.h"
|
||||
#include "QF/qargs.h"
|
||||
#include "QF/render.h"
|
||||
#include "QF/skin.h"
|
||||
#include "QF/sound.h"
|
||||
#include "QF/sys.h"
|
||||
#include "QF/vid.h"
|
||||
|
||||
#include "QF/scene/entity.h"
|
||||
|
||||
#include "QF/GL/defines.h"
|
||||
|
@ -276,7 +266,6 @@ gl_R_RenderView (void)
|
|||
gl_Fog_EnableGFog ();
|
||||
|
||||
gl_R_DrawWorld ();
|
||||
S_ExtraUpdate (); // don't let sound get messed up if going slow
|
||||
gl_R_RenderDlights ();
|
||||
if (vr_data.view_model) {
|
||||
R_DrawViewModel ();
|
||||
|
|
|
@ -38,12 +38,6 @@
|
|||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "QF/model.h"
|
||||
#include "QF/msg.h"
|
||||
#include "QF/render.h"
|
||||
#include "QF/sound.h"
|
||||
#include "QF/sys.h"
|
||||
|
||||
#include "QF/scene/entity.h"
|
||||
|
||||
#include "r_internal.h"
|
||||
|
|
|
@ -37,11 +37,7 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "QF/cvar.h"
|
||||
#include "QF/draw.h"
|
||||
#include "QF/quakefs.h"
|
||||
#include "QF/sound.h"
|
||||
#include "QF/sys.h"
|
||||
#include "QF/ui/view.h"
|
||||
|
||||
#include "d_iface.h"
|
||||
|
@ -779,8 +775,6 @@ Draw_FadeScreen (void)
|
|||
int width = vid.conview->xlen / 4;
|
||||
uint32_t *pbuf;
|
||||
|
||||
S_ExtraUpdate ();
|
||||
|
||||
for (y = 0; y < height; y++) {
|
||||
uint32_t mask;
|
||||
|
||||
|
@ -792,8 +786,6 @@ Draw_FadeScreen (void)
|
|||
}
|
||||
}
|
||||
vr_data.scr_copyeverything = 1;
|
||||
|
||||
S_ExtraUpdate ();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include "QF/render.h"
|
||||
#include "QF/sound.h"
|
||||
|
||||
#include "d_ifacea.h"
|
||||
#include "r_internal.h"
|
||||
#include "vid_internal.h"
|
||||
|
@ -520,8 +517,6 @@ R_ScanEdges (void)
|
|||
// flush the span list if we can't be sure we have enough spans left
|
||||
// for the next scan
|
||||
if (span_p > max_span_p) {
|
||||
S_ExtraUpdate (); // don't let sound get messed up if going slow
|
||||
|
||||
if (r_drawculledpolys)
|
||||
R_DrawCulledPolys ();
|
||||
else
|
||||
|
|
|
@ -41,12 +41,6 @@
|
|||
#include <math.h>
|
||||
|
||||
#include "QF/cmd.h"
|
||||
#include "QF/cvar.h"
|
||||
#include "QF/mathlib.h"
|
||||
#include "QF/render.h"
|
||||
#include "QF/screen.h"
|
||||
#include "QF/sound.h"
|
||||
#include "QF/sys.h"
|
||||
|
||||
#include "QF/scene/entity.h"
|
||||
#include "QF/scene/scene.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include "QF/mathlib.h"
|
||||
#include "QF/model.h"
|
||||
#include "QF/quakefs.h"
|
||||
#include "QF/sound.h"
|
||||
#include "QF/render.h"
|
||||
|
||||
#include "client/chase.h"
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include "QF/quakeio.h"
|
||||
#include "QF/sizebuf.h"
|
||||
|
||||
#include "client.h"
|
||||
#include "game.h"
|
||||
#include "netmain.h"
|
||||
#include "protocol.h"
|
||||
#include "sv_progs.h"
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
#include "QF/render.h"
|
||||
#include "QF/screen.h"
|
||||
#include "QF/skin.h"
|
||||
#include "QF/sound.h"
|
||||
#include "QF/sys.h"
|
||||
#include "QF/va.h"
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
#include "QF/sys.h"
|
||||
#include "QF/screen.h"
|
||||
#include "QF/skin.h"
|
||||
#include "QF/sound.h" // FIXME: DEFAULT_SOUND_PACKET_*
|
||||
#include "QF/sound.h"
|
||||
#include "QF/va.h"
|
||||
|
||||
#include "QF/scene/scene.h"
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
|
||||
#include "buildnum.h"
|
||||
|
||||
#include "nq/include/client.h"
|
||||
#include "nq/include/host.h"
|
||||
#include "nq/include/server.h"
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
#include "client/world.h"
|
||||
|
||||
#include "nq/include/client.h"
|
||||
#include "nq/include/host.h"
|
||||
#include "nq/include/server.h"
|
||||
|
||||
|
|
|
@ -34,10 +34,13 @@
|
|||
#include "QF/gib.h"
|
||||
#include "QF/msg.h"
|
||||
#include "QF/mathlib.h"
|
||||
#include "QF/quakefs.h"
|
||||
#include "QF/set.h"
|
||||
#include "QF/sys.h"
|
||||
#include "QF/va.h"
|
||||
|
||||
#include "QF/simd/vec4f.h"
|
||||
|
||||
#include "compat.h"
|
||||
#include "world.h"
|
||||
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
#include "QF/dstring.h"
|
||||
#include "QF/msg.h"
|
||||
#include "QF/set.h"
|
||||
#include "QF/sound.h" // FIXME: DEFAULT_SOUND_PACKET_*
|
||||
#include "QF/sys.h"
|
||||
|
||||
#include "compat.h"
|
||||
|
|
Loading…
Reference in a new issue