* moved SVN_VERSION #ifdef from client.h to q_shared.h so dedicated server

builds when svn version cannot be detected
This commit is contained in:
Tony J. White = 2006-08-26 06:12:15 +00:00
parent 5ee7b5ed59
commit 1f8c2c56eb
3 changed files with 4 additions and 5 deletions

View file

@ -131,7 +131,7 @@ SDLHDIR=$(MOUNT_DIR)/SDL12
LIBSDIR=$(MOUNT_DIR)/libs
# extract version info
VERSION=$(shell grep Q3_VERSION $(CMDIR)/q_shared.h | \
VERSION=$(shell grep "\#define Q3_VERSION" $(CMDIR)/q_shared.h | \
sed -e 's/.*".* \([^ ]*\)"/\1/')
USE_SVN=

View file

@ -35,10 +35,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define RETRANSMIT_TIMEOUT 3000 // time between connection packet retransmits
#ifndef SVN_VERSION
#define SVN_VERSION Q3_VERSION
#endif
// snapshots are a view of the server at a given time
typedef struct {
qboolean valid; // cleared if delta parsing was invalid

View file

@ -27,6 +27,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// A user mod should never modify this file
#define Q3_VERSION "ioQ3 1.33"
#ifndef SVN_VERSION
#define SVN_VERSION Q3_VERSION
#endif
#define CLIENT_WINDOW_TITLE "icculus.org/quake3"
#define CLIENT_WINDOW_ICON "ioq3"
#define CONSOLE_WINDOW_TITLE "icculus.org/quake3 console"