Compare commits

..

1 Commits

Author SHA1 Message Date
aozhiwei
f90c6068bf 修复编译问题 2024-12-26 22:15:09 +08:00
7 changed files with 14 additions and 27 deletions

View File

@ -15,14 +15,6 @@ else()
set(CMAKE_BUILD_TYPE "Debug") set(CMAKE_BUILD_TYPE "Debug")
message("debug mode") message("debug mode")
endif() endif()
if (${LIB_DIR})
message(LIB_DIR: ${LIB_DIR})
else()
set(LIB_DIR )
message(LIB_DIR: ${LIB_DIR} )
endif()
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -std=gnu++11 -DGAME_ID=${GAME_ID} -DNDEBUG") set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -std=gnu++11 -DGAME_ID=${GAME_ID} -DNDEBUG")
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DGAME_ID=${GAME_ID} -DDEBUG") set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DGAME_ID=${GAME_ID} -DDEBUG")
@ -36,7 +28,6 @@ include_directories(
/usr/include/glm /usr/include/glm
../../third_party ../../third_party
../../third_party/behaviac/inc ../../third_party/behaviac/inc
../../third_party/recastnavigation/Recast/Include
../../third_party/recastnavigation/Detour/Include ../../third_party/recastnavigation/Detour/Include
../../third_party/recastnavigation/DetourTileCache/Include ../../third_party/recastnavigation/DetourTileCache/Include
. .
@ -45,7 +36,7 @@ include_directories(
link_directories( link_directories(
/usr/lib64/mysql /usr/lib64/mysql
/usr/local/lib /usr/local/lib
../../third_party/behaviac/lib/${LIB_DIR} ../../third_party/behaviac/lib
) )
aux_source_directory(../../third_party/a8engine/a8 aux_source_directory(../../third_party/a8engine/a8
@ -56,10 +47,6 @@ aux_source_directory(../../third_party/framework/cpp
SRC_LIST SRC_LIST
) )
aux_source_directory(../../third_party/recastnavigation/Recast/Source
SRC_LIST
)
aux_source_directory(../../third_party/recastnavigation/Detour/Source aux_source_directory(../../third_party/recastnavigation/Detour/Source
SRC_LIST SRC_LIST
) )
@ -110,7 +97,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
hiredis hiredis
tinyxml2 tinyxml2
tcmalloc tcmalloc
behaviac_gcc_release behaviac_gcc_debug
) )
else() else()
target_link_libraries( target_link_libraries(

View File

@ -203,13 +203,9 @@ GSNode* GSMgr::AllocNode(int channel)
GSNode* n2 = sorted_nodes->at(sorted_nodes->size() - 2); GSNode* n2 = sorted_nodes->at(sorted_nodes->size() - 2);
if (n1->online_num < 100 && n2->online_num < 100) { if (n1->online_num < 100 && n2->online_num < 100) {
if (n1->instance_id < n2->instance_id) { if (n1->instance_id < n2->instance_id) {
if (n1->servicing) { return n1;
return n1;
}
} else { } else {
if (n2->servicing) { return n2;
return n2;
}
} }
} }
} }

View File

@ -10,13 +10,17 @@ void JsonDataMgr::Init()
std::string masterserver_cluster_json_file; std::string masterserver_cluster_json_file;
if (!f8::IsOnlineEnv()) { if (!f8::IsOnlineEnv()) {
if (f8::IsTestEnv()) { if (f8::IsTestEnv()) {
work_path_ = a8::Format("../../../conf_test/game%d/masterserver.test", work_path_ = a8::Format("/root/pub/%d/%d/conf_test/game%d/masterserver.test",
{ {
GAME_ID,
App::Instance()->instance_id,
GAME_ID GAME_ID
}); });
} else { } else {
work_path_ = a8::Format("../../../conf_test/game%d/masterserver.dev", work_path_ = a8::Format("/root/pub/%d/%d/conf_test/game%d/masterserver.dev",
{ {
GAME_ID,
App::Instance()->instance_id,
GAME_ID GAME_ID
}); });
} }

@ -1 +1 @@
Subproject commit 9c890ba78e289d4879f921b94b558e10d66b2b64 Subproject commit 4c181a0473b0e9f43e0df6b4ee6f158ff9de3e1f

@ -1 +1 @@
Subproject commit 5beca57f6555aa0d9e4de71c93653cade928a654 Subproject commit 240414570ee2848291d24ff8d3102dc43d4104a3

@ -1 +1 @@
Subproject commit 180f9e3f5cdad81a58fe4f8a96b0bd6388eef222 Subproject commit eb455bb95f97dc506566c443be0c72960ceebabf

2
third_party/tools vendored

@ -1 +1 @@
Subproject commit 725d70ebaba30c20124075cf5e4bd751d2404d28 Subproject commit 43a09bd136f0d28c61cd03103b9d151af1317381