From 1d1dd11bdf1988a6d7780ee70b6e0554e7eaab42 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 29 Dec 2004 03:06:27 +0000 Subject: [PATCH] I apologise for the error in the earlier code. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@692 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_cam.c | 7 +++++++ engine/client/quakedef.h | 2 +- engine/common/bothdefs.h | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/engine/client/cl_cam.c b/engine/client/cl_cam.c index a776dad24..08405f098 100644 --- a/engine/client/cl_cam.c +++ b/engine/client/cl_cam.c @@ -112,6 +112,13 @@ qboolean Cam_DrawPlayer(int pnum, int playernum) return true; } +int Cam_TrackNum(int pnum) +{ + if (!autocam[pnum]) + return -1; + return spec_track[pnum]; +} + void Cam_Unlock(int pnum) { if (autocam[pnum]) diff --git a/engine/client/quakedef.h b/engine/client/quakedef.h index a55cbfc80..c705f1f52 100644 --- a/engine/client/quakedef.h +++ b/engine/client/quakedef.h @@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // quakedef.h -- primary header for client +#include "bothdefs.h" //first thing included by ALL files. #if _MSC_VER @@ -101,7 +102,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include #include -#include "bothdefs.h" //we need to know if png is available #if defined(AVAIL_PNGLIB) && defined(PNG_SUCKS_WITH_SETJMP) #include #else diff --git a/engine/common/bothdefs.h b/engine/common/bothdefs.h index ffbc051fe..f8923f864 100644 --- a/engine/common/bothdefs.h +++ b/engine/common/bothdefs.h @@ -171,7 +171,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. //remove any options that depend upon GL. #ifndef SERVERONLY - #if defined(SWQUAKE) && !defined(RGLQUAKE) && !defined(GLQUAKE) + #if defined(SWQUAKE) && !defined(GLQUAKE) #undef DOOMWADS #undef HALFLIFEMODELS #undef Q3BSPS @@ -180,7 +180,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #endif #endif -#if !defined(RGLQUAKE) +#if !defined(GLQUAKE) #undef Q3BSPS #endif #if !defined(Q3BSPS)