This commit is contained in:
aozhiwei 2019-06-19 16:35:03 +08:00
parent 09bcbe9142
commit 94317b5a79
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ else()
endif()
set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_BUILD_TYPE "Release")
#set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -g -std=gnu++11 -DGAME_ID=${GAME_ID} -DA8_TCP_SESSION2=1 -DMAP_SERVICE=1")
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DGAME_ID=${GAME_ID} -DA8_TCP_SESSION2=1 -DMAP_SERVICE=1")
@ -85,4 +85,5 @@ target_link_libraries(
curl
hiredis
tinyxml2
tcmalloc
)

View File

@ -11,7 +11,7 @@
Obstacle::Obstacle():Entity()
{
entity_type = ET_Obstacle;
--App::Instance()->perf.entity_num[ET_Obstacle];
++App::Instance()->perf.entity_num[ET_Obstacle];
}
Obstacle::~Obstacle()