From c885822527bf3c0d6fd92df3d2e6a288080c6aac Mon Sep 17 00:00:00 2001 From: James Gregory Date: Mon, 29 Apr 2013 20:54:36 -0700 Subject: [PATCH] Use floats instead of doubles for Chipmunk. --- cocos2dx/proj.emscripten/cocos2dx.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos2dx/proj.emscripten/cocos2dx.mk b/cocos2dx/proj.emscripten/cocos2dx.mk index d0eacf24e4..90ae640824 100644 --- a/cocos2dx/proj.emscripten/cocos2dx.mk +++ b/cocos2dx/proj.emscripten/cocos2dx.mk @@ -42,14 +42,14 @@ INCLUDES += -I$(COCOS_SRC)/platform/third_party/linux ifeq ($(DEBUG), 1) CCFLAGS += -g -O0 -s ASSERTIONS=1 -s SAFE_HEAP=1 --jcache CXXFLAGS += -g -O0 -s ASSERTIONS=1 -s SAFE_HEAP=1 --jcache -DEFINES += -D_DEBUG -DCOCOS2D_DEBUG=1 +DEFINES += -D_DEBUG -DCOCOS2D_DEBUG=1 -DCP_USE_DOUBLES=0 OBJ_DIR := $(OBJ_DIR)/debug LIB_DIR := $(LIB_DIR)/debug BIN_DIR := $(BIN_DIR)/debug else CCFLAGS += -O1 --jcache CXXFLAGS += -O1 --jcache -DEFINES += -DNDEBUG +DEFINES += -DNDEBUG -DCP_USE_DOUBLES=0 OBJ_DIR := $(OBJ_DIR)/release LIB_DIR := $(LIB_DIR)/release BIN_DIR := $(BIN_DIR)/release