summaryrefslogtreecommitdiff
path: root/inc/client/client.h
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2012-08-05 19:23:24 +0400
committerAndrey Nazarov <skuller@skuller.net>2012-08-05 19:23:24 +0400
commit85bfaaba79c518a6833d08733784af4049aa1b95 (patch)
treea0c3fbb438946379aa2ad66e4afc8331b320f312 /inc/client/client.h
parentadd23e4a1d6f7131d5bc0c1db3159a92cdb7472f (diff)
Remove some ‘#if USE_CLIENT’ tests.
Diffstat (limited to 'inc/client/client.h')
-rw-r--r--inc/client/client.h29
1 files changed, 26 insertions, 3 deletions
diff --git a/inc/client/client.h b/inc/client/client.h
index 7e8d368..6f1e062 100644
--- a/inc/client/client.h
+++ b/inc/client/client.h
@@ -23,6 +23,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "common/net/net.h"
#include "common/utils.h"
+#define CHAR_WIDTH 8
+#define CHAR_HEIGHT 8
+
+#if USE_CLIENT
+
#define MAX_LOCAL_SERVERS 16
#define MAX_STATUS_PLAYERS 64
@@ -97,9 +102,6 @@ void SCR_UpdateScreen(void);
#define U32_MAGENTA MakeColor(255, 0, 255, 255)
#define U32_WHITE MakeColor(255, 255, 255, 255)
-#define CHAR_WIDTH 8
-#define CHAR_HEIGHT 8
-
#define UI_LEFT 0x00000001
#define UI_RIGHT 0x00000002
#define UI_CENTER (UI_LEFT | UI_RIGHT)
@@ -120,4 +122,25 @@ qboolean SCR_ParseColor(const char *s, color_t *color);
float V_CalcFov(float fov_x, float width, float height);
+#else // USE_CLIENT
+
+#define CL_Init() (void)0
+#define CL_Disconnect(type) (void)0
+#define CL_Shutdown() (void)0
+#define CL_UpdateUserinfo(var, from) (void)0
+#define CL_ErrorEvent(from) (void)0
+#define CL_RestartFilesystem(total) FS_Restart(total)
+#define CL_ForwardToServer() qfalse
+#define CL_CheatsOK() (!!Cvar_VariableInteger("cheats"))
+
+#define Con_Init() (void)0
+#define Con_SetColor(color) (void)0
+#define Con_Print(text) (void)0
+
+#define SCR_DebugGraph(value, color) (void)0
+#define SCR_BeginLoadingPlaque() (void)0
+#define SCR_EndLoadingPlaque() (void)0
+
+#endif // !USE_CLIENT
+
#endif // CLIENT_H