Skip to content

Commit

Permalink
Merge branch 'master' into sdl2
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed Mar 24, 2014
2 parents 8b06986 + 63463d1 commit c55df2c
Show file tree
Hide file tree
Showing 73 changed files with 60,614 additions and 31 deletions.
66 changes: 51 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ ifndef USE_INTERNAL_OGG
USE_INTERNAL_OGG=1
endif

ifndef USE_INTERNAL_VORBIS
USE_INTERNAL_VORBIS=1
endif

ifndef USE_INTERNAL_OPUS
USE_INTERNAL_OPUS=1
endif
Expand Down Expand Up @@ -241,6 +245,7 @@ Q3UIDIR=$(MOUNT_DIR)/q3_ui
JPDIR=$(MOUNT_DIR)/jpeg-8c
SPEEXDIR=$(MOUNT_DIR)/libspeex
OGGDIR=$(MOUNT_DIR)/libogg-1.3.1
VORBISDIR=$(MOUNT_DIR)/libvorbis-1.3.4
OPUSDIR=$(MOUNT_DIR)/opus-1.1
OPUSFILEDIR=$(MOUNT_DIR)/opusfile-0.5
ZDIR=$(MOUNT_DIR)/zlib
Expand Down Expand Up @@ -322,15 +327,13 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu"))

ifeq ($(ARCH),x86_64)
OPTIMIZEVM = -O3 -fomit-frame-pointer -funroll-loops \
-falign-loops=2 -falign-jumps=2 -falign-functions=2 \
-fstrength-reduce
-falign-functions=2 -fstrength-reduce
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
HAVE_VM_COMPILED = true
else
ifeq ($(ARCH),x86)
OPTIMIZEVM = -O3 -march=i586 -fomit-frame-pointer \
-funroll-loops -falign-loops=2 -falign-jumps=2 \
-falign-functions=2 -fstrength-reduce
-funroll-loops -falign-functions=2 -fstrength-reduce
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
HAVE_VM_COMPILED=true
else
Expand Down Expand Up @@ -480,7 +483,6 @@ ifeq ($(PLATFORM),darwin)
$(LIBSDIR)/macosx/libSDL2-2.0.0.dylib
RENDERER_LIBS += -framework OpenGL $(LIBSDIR)/macosx/libSDL2-2.0.0.dylib

OPTIMIZEVM += -falign-loops=16
OPTIMIZE = $(OPTIMIZEVM) -ffast-math

SHLIBEXT=dylib
Expand Down Expand Up @@ -555,15 +557,13 @@ ifeq ($(PLATFORM),mingw32)

ifeq ($(ARCH),x86_64)
OPTIMIZEVM = -O3 -fno-omit-frame-pointer \
-falign-loops=2 -funroll-loops -falign-jumps=2 -falign-functions=2 \
-fstrength-reduce
-funroll-loops -falign-functions=2 -fstrength-reduce
OPTIMIZE = $(OPTIMIZEVM) --fast-math
HAVE_VM_COMPILED = true
endif
ifeq ($(ARCH),x86)
OPTIMIZEVM = -O3 -march=i586 -fno-omit-frame-pointer \
-falign-loops=2 -funroll-loops -falign-jumps=2 -falign-functions=2 \
-fstrength-reduce
-funroll-loops -falign-functions=2 -fstrength-reduce
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
HAVE_VM_COMPILED = true
endif
Expand Down Expand Up @@ -708,15 +708,13 @@ ifeq ($(PLATFORM),openbsd)

ifeq ($(ARCH),x86_64)
OPTIMIZEVM = -O3 -fomit-frame-pointer -funroll-loops \
-falign-loops=2 -falign-jumps=2 -falign-functions=2 \
-fstrength-reduce
-falign-functions=2 -fstrength-reduce
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
HAVE_VM_COMPILED = true
else
ifeq ($(ARCH),x86)
OPTIMIZEVM = -O3 -march=i586 -fomit-frame-pointer \
-funroll-loops -falign-loops=2 -falign-jumps=2 \
-falign-functions=2 -fstrength-reduce
-funroll-loops -falign-functions=2 -fstrength-reduce
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
HAVE_VM_COMPILED=true
else
Expand Down Expand Up @@ -854,7 +852,6 @@ ifeq ($(PLATFORM),sunos)
else
ifeq ($(ARCH),x86)
OPTIMIZEVM += -march=i586 -fomit-frame-pointer \
-falign-loops=2 -falign-jumps=2 \
-falign-functions=2 -fstrength-reduce
HAVE_VM_COMPILED=true
BASE_CFLAGS += -m32
Expand Down Expand Up @@ -989,7 +986,6 @@ endif

ifeq ($(USE_CODEC_VORBIS),1)
CLIENT_CFLAGS += -DUSE_CODEC_VORBIS
CLIENT_LIBS += -lvorbisfile -lvorbis
NEED_OGG=1
endif

Expand All @@ -1015,6 +1011,15 @@ ifeq ($(NEED_OGG),1)
endif
endif

ifeq ($(USE_CODEC_VORBIS),1)
ifeq ($(USE_INTERNAL_VORBIS),1)
CLIENT_CFLAGS += -I$(VORBISDIR)/include -I$(VORBISDIR)/lib

else
CLIENT_LIBS += -lvorbisfile -lvorbis
endif
endif

ifeq ($(USE_RENDERER_DLOPEN),1)
CLIENT_CFLAGS += -DUSE_RENDERER_DLOPEN
endif
Expand Down Expand Up @@ -1280,6 +1285,7 @@ makedirs:
@if [ ! -d $(B) ];then $(MKDIR) $(B);fi
@if [ ! -d $(B)/client ];then $(MKDIR) $(B)/client;fi
@if [ ! -d $(B)/client/opus ];then $(MKDIR) $(B)/client/opus;fi
@if [ ! -d $(B)/client/vorbis ];then $(MKDIR) $(B)/client/vorbis;fi
@if [ ! -d $(B)/renderergl1 ];then $(MKDIR) $(B)/renderergl1;fi
@if [ ! -d $(B)/renderergl2 ];then $(MKDIR) $(B)/renderergl2;fi
@if [ ! -d $(B)/renderergl2/glsl ];then $(MKDIR) $(B)/renderergl2/glsl;fi
Expand Down Expand Up @@ -1979,6 +1985,33 @@ Q3OBJ += \
endif
endif

ifeq ($(USE_CODEC_VORBIS),1)
ifeq ($(USE_INTERNAL_VORBIS),1)
Q3OBJ += \
$(B)/client/vorbis/analysis.o \
$(B)/client/vorbis/bitrate.o \
$(B)/client/vorbis/block.o \
$(B)/client/vorbis/codebook.o \
$(B)/client/vorbis/envelope.o \
$(B)/client/vorbis/floor0.o \
$(B)/client/vorbis/floor1.o \
$(B)/client/vorbis/info.o \
$(B)/client/vorbis/lookup.o \
$(B)/client/vorbis/lpc.o \
$(B)/client/vorbis/lsp.o \
$(B)/client/vorbis/mapping0.o \
$(B)/client/vorbis/mdct.o \
$(B)/client/vorbis/psy.o \
$(B)/client/vorbis/registry.o \
$(B)/client/vorbis/res0.o \
$(B)/client/vorbis/smallft.o \
$(B)/client/vorbis/sharedbook.o \
$(B)/client/vorbis/synthesis.o \
$(B)/client/vorbis/vorbisfile.o \
$(B)/client/vorbis/window.o
endif
endif

ifeq ($(USE_INTERNAL_ZLIB),1)
Q3OBJ += \
$(B)/client/adler32.o \
Expand Down Expand Up @@ -2506,6 +2539,9 @@ $(B)/client/%.o: $(SPEEXDIR)/%.c
$(B)/client/%.o: $(OGGDIR)/src/%.c
$(DO_CC)

$(B)/client/vorbis/%.o: $(VORBISDIR)/lib/%.c
$(DO_CC)

$(B)/client/opus/%.o: $(OPUSDIR)/src/%.c
$(DO_CC)

Expand Down
3 changes: 3 additions & 0 deletions code/game/ai_dmq3.c
Original file line number Diff line number Diff line change
Expand Up @@ -4432,6 +4432,9 @@ open, which buttons to activate etc.
==================
*/
void BotAIBlocked(bot_state_t *bs, bot_moveresult_t *moveresult, int activate) {
#ifdef OBSTACLEDEBUG
char netname[MAX_NETNAME];
#endif
int movetype, bspent;
vec3_t hordir, sideward, angles, up = {0, 0, 1};
//vec3_t start, end, mins, maxs;
Expand Down
Loading

0 comments on commit c55df2c

Please sign in to comment.