From 3ebf7f097bcf28c19c3cc76c6adfb571541f45a5 Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 12 Feb 2020 15:35:25 +0700 Subject: [PATCH] server: fix include hell in animation.cpp --- dlls/animation.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dlls/animation.cpp b/dlls/animation.cpp index 6ebddc01..0efada33 100644 --- a/dlls/animation.cpp +++ b/dlls/animation.cpp @@ -13,6 +13,10 @@ * ****/ +/* all this mess was here to use quake mathlib instead of hlsdk vectors +* it may break debug info or even build because global symbols types differ +* it's better to define VectorCopy macro for Vector class */ +#if 0 #include #include #include @@ -50,7 +54,17 @@ typedef unsigned char byte; #include "enginecallback.h" #endif -extern globalvars_t *gpGlobals; +//extern globalvars_t *gpGlobals; +#else +#include "extdll.h" +#include "util.h" +#include "activity.h" +#include "activitymap.h" +#include "animation.h" +#include "scriptevent.h" +#include "studio.h" +#define VectorCopy(x,y) (y = x) +#endif #pragma warning( disable : 4244 )