/*
Copyright (C) 1996-1997 Id Software, Inc.
+Copyright (C) 2000-2020 DarkPlaces contributors
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
#ifndef COMMON_H
#define COMMON_H
+#include <stdarg.h>
+#include "qtypes.h"
+#include "qdefs.h"
/// MSVC has a different name for several standard functions
#ifdef WIN32
//============================================================================
-#define ContainerOf(ptr, type, member) ((type *)((void *)&(ptr) - offsetof(type, member)))
+#define ContainerOf(ptr, type, member) ((type *)((char *)&(ptr) - offsetof(type, member)))
typedef struct sizebuf_s
{
GAME_MOONHELM,
GAME_VORETOURNAMENT,
GAME_DOOMBRINGER, // added by Cloudwalk for kristus
+ GAME_BATTLEMETAL, // added by Cloudwalk for Subject9x
GAME_COUNT
}
gamemode_t;