aboutsummaryrefslogtreecommitdiff
path: root/src/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trace.c')
-rw-r--r--src/trace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/trace.c b/src/trace.c
index 2fe18c6..1118bdf 100644
--- a/src/trace.c
+++ b/src/trace.c
@@ -21,6 +21,7 @@
#include "gametype.h"
#include "intdefs.h"
#include "trace.h"
+#include "vcall.h"
FEATURE()
// TODO(compat): limiting to tested branches for now; support others as needed
@@ -35,10 +36,9 @@ struct ray {
bool isray, isswept;
};
-static void *srvtrace;
-
-DECL_VFUNC(void, TraceRay, 5, struct ray *, uint /*mask*/, void */*filter*/,
- struct CGameTrace *)
+static struct IEngineTraceServer *srvtrace;
+DECL_VFUNC(struct IEngineTraceServer, void, TraceRay, 5,
+ struct ray *, uint /*mask*/, void */*filter*/, struct CGameTrace *)
static inline bool nonzero(struct vec3f v) {
union { struct vec3f v; struct { unsigned int x, y, z; }; } u = {v};