Compare commits
1 Commits
master
...
new_online
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f90c6068bf |
@ -15,14 +15,6 @@ else()
|
||||
set(CMAKE_BUILD_TYPE "Debug")
|
||||
message("debug mode")
|
||||
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_DEBUG "-Wall -g -std=gnu++11 -DGAME_ID=${GAME_ID} -DDEBUG")
|
||||
|
||||
@ -36,7 +28,6 @@ include_directories(
|
||||
/usr/include/glm
|
||||
../../third_party
|
||||
../../third_party/behaviac/inc
|
||||
../../third_party/recastnavigation/Recast/Include
|
||||
../../third_party/recastnavigation/Detour/Include
|
||||
../../third_party/recastnavigation/DetourTileCache/Include
|
||||
.
|
||||
@ -45,7 +36,7 @@ include_directories(
|
||||
link_directories(
|
||||
/usr/lib64/mysql
|
||||
/usr/local/lib
|
||||
../../third_party/behaviac/lib/${LIB_DIR}
|
||||
../../third_party/behaviac/lib
|
||||
)
|
||||
|
||||
aux_source_directory(../../third_party/a8engine/a8
|
||||
@ -56,10 +47,6 @@ aux_source_directory(../../third_party/framework/cpp
|
||||
SRC_LIST
|
||||
)
|
||||
|
||||
aux_source_directory(../../third_party/recastnavigation/Recast/Source
|
||||
SRC_LIST
|
||||
)
|
||||
|
||||
aux_source_directory(../../third_party/recastnavigation/Detour/Source
|
||||
SRC_LIST
|
||||
)
|
||||
@ -110,7 +97,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
hiredis
|
||||
tinyxml2
|
||||
tcmalloc
|
||||
behaviac_gcc_release
|
||||
behaviac_gcc_debug
|
||||
)
|
||||
else()
|
||||
target_link_libraries(
|
||||
|
@ -203,13 +203,9 @@ GSNode* GSMgr::AllocNode(int channel)
|
||||
GSNode* n2 = sorted_nodes->at(sorted_nodes->size() - 2);
|
||||
if (n1->online_num < 100 && n2->online_num < 100) {
|
||||
if (n1->instance_id < n2->instance_id) {
|
||||
if (n1->servicing) {
|
||||
return n1;
|
||||
}
|
||||
return n1;
|
||||
} else {
|
||||
if (n2->servicing) {
|
||||
return n2;
|
||||
}
|
||||
return n2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,13 +10,17 @@ void JsonDataMgr::Init()
|
||||
std::string masterserver_cluster_json_file;
|
||||
if (!f8::IsOnlineEnv()) {
|
||||
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
|
||||
});
|
||||
} 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
|
||||
});
|
||||
}
|
||||
|
2
third_party/a8engine
vendored
2
third_party/a8engine
vendored
@ -1 +1 @@
|
||||
Subproject commit 9c890ba78e289d4879f921b94b558e10d66b2b64
|
||||
Subproject commit 4c181a0473b0e9f43e0df6b4ee6f158ff9de3e1f
|
2
third_party/behaviac
vendored
2
third_party/behaviac
vendored
@ -1 +1 @@
|
||||
Subproject commit 5beca57f6555aa0d9e4de71c93653cade928a654
|
||||
Subproject commit 240414570ee2848291d24ff8d3102dc43d4104a3
|
2
third_party/framework
vendored
2
third_party/framework
vendored
@ -1 +1 @@
|
||||
Subproject commit 180f9e3f5cdad81a58fe4f8a96b0bd6388eef222
|
||||
Subproject commit eb455bb95f97dc506566c443be0c72960ceebabf
|
2
third_party/tools
vendored
2
third_party/tools
vendored
@ -1 +1 @@
|
||||
Subproject commit 725d70ebaba30c20124075cf5e4bd751d2404d28
|
||||
Subproject commit 43a09bd136f0d28c61cd03103b9d151af1317381
|
Loading…
x
Reference in New Issue
Block a user