Skip to content

Commit 5080489

Browse files
committed
Merge remote-tracking branch 'remotes/origin/3.3.5' into 3.3.5-nemesis_anticheat
# Conflicts: # src/server/game/Entities/Player/Player.cpp
2 parents 4ee825a + 31f9e17 commit 5080489

389 files changed

Lines changed: 41389 additions & 22013 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmake/compiler/clang/settings.cmake

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ endif()
5858
if(WITH_COREDEBUG)
5959
target_compile_options(trinity-compile-option-interface
6060
INTERFACE
61-
-g3)
61+
-g3 -glldb)
6262

63-
message(STATUS "Clang: Debug-flags set (-g3)")
63+
message(STATUS "Clang: Debug-flags set (-g3 -glldb)")
6464
endif()
6565

6666
if(ASAN)
@@ -129,11 +129,12 @@ endif()
129129

130130
# -Wno-narrowing needed to suppress a warning in g3d
131131
# -Wno-deprecated-register is needed to suppress 185 gsoap warnings on Unix systems.
132-
# -Wno-deprecated-copy needed to suppress a warning in g3d
132+
# -Wno-undefined-inline needed for a compile time optimization hack with fmt
133133
target_compile_options(trinity-compile-option-interface
134134
INTERFACE
135135
-Wno-narrowing
136-
-Wno-deprecated-register)
136+
-Wno-deprecated-register
137+
-Wno-undefined-inline)
137138

138139
if(BUILD_SHARED_LIBS)
139140
# -fPIC is needed to allow static linking in shared libs.

cmake/compiler/gcc/settings.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ endif()
4444
if(WITH_COREDEBUG)
4545
target_compile_options(trinity-compile-option-interface
4646
INTERFACE
47-
-g3)
47+
-ggdb3)
4848

49-
message(STATUS "GCC: Debug-flags set (-g3)")
49+
message(STATUS "GCC: Debug-flags set (-ggdb3)")
5050
endif()
5151

5252
if(ASAN)

contrib/extractor.sh

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,39 @@
22

33
# Set client and server directories as environment variables
44
# if you don't want to enter them here
5-
if [ -z $CLIENT_DIR ]; then
5+
if [ -z "$CLIENT_DIR" ]; then
66
echo -n "Enter directory where client files are located: "
77
read CLIENT_DIR
88

9-
if ! cd $CLIENT_DIR; then
9+
if ! cd "$CLIENT_DIR"; then
1010
echo "Cannot access $CLIENT_DIR"
1111
exit 1
1212
fi
13-
if [ ! -d $CLIENT_DIR/Data ]; then
13+
if [ ! -d "$CLIENT_DIR/Data" ]; then
1414
echo "Cannot find client files in $CLIENT_DIR"
1515
exit 1
1616
fi
1717
fi
1818

19-
if [ -z $SERVER_DIR ]; then
19+
if [ -z "$SERVER_DIR" ]; then
2020
echo -n "Enter directory where server files are located: "
2121
read SERVER_DIR
2222

23-
if ! cd $SERVER_DIR; then
23+
if ! cd "$SERVER_DIR"; then
2424
echo "Cannot access $SERVER_DIR"
2525
exit 1
2626
fi
2727
fi
2828

2929
# These should all be correct on a standard installation
30-
DATA_DIR=${SERVER_DIR}/data
31-
MAPEXTRACTOR=${SERVER_DIR}/bin/mapextractor
32-
VMAP4EXTRACTOR=${SERVER_DIR}/bin/vmap4extractor
33-
VMAP4ASSEMBLER=${SERVER_DIR}/bin/vmap4assembler
34-
MMAPS_GENERATOR=${SERVER_DIR}/bin/mmaps_generator
30+
DATA_DIR="${SERVER_DIR}/data"
31+
MAPEXTRACTOR="${SERVER_DIR}/bin/mapextractor"
32+
VMAP4EXTRACTOR="${SERVER_DIR}/bin/vmap4extractor"
33+
VMAP4ASSEMBLER="${SERVER_DIR}/bin/vmap4assembler"
34+
MMAPS_GENERATOR="${SERVER_DIR}/bin/mmaps_generator"
3535

3636
check_files() {
37-
for i in $MAPEXTRACTOR $VMAP4EXTRACTOR $VMAP4ASSEMBLER $MMAPS_GENERATOR
37+
for i in "$MAPEXTRACTOR" "$VMAP4EXTRACTOR" "$VMAP4ASSEMBLER" "$MMAPS_GENERATOR"
3838
do
3939
if [[ ! -x $i ]]
4040
then
@@ -62,23 +62,23 @@ echo "Extracting DBC, Camera and Maps files"
6262
echo
6363
echo "-- Using $MAPEXTRACTOR"
6464
echo "-- Copying extracted data to ${DATA_DIR}"
65-
if [[ ! -d ${DATA_DIR} ]]
65+
if [[ ! -d "${DATA_DIR}" ]]
6666
then
6767
echo "-- Creating ${DATA_DIR}"
68-
mkdir ${DATA_DIR}
68+
mkdir "${DATA_DIR}"
6969
fi
7070
echo "-- Starting in 5 seconds"
7171
sleep 5
7272

73-
cd ${CLIENT_DIR}
74-
$MAPEXTRACTOR
73+
cd "${CLIENT_DIR}"
74+
"$MAPEXTRACTOR"
7575

7676
echo "-- Extraction complete, copying dbc and maps files"
77-
cp -r dbc maps ${DATA_DIR}
78-
if [[ -d ${CLIENT_DIR}/Cameras ]]
77+
cp -r dbc maps "${DATA_DIR}"
78+
if [[ -d "${CLIENT_DIR}/Cameras" ]]
7979
then
8080
echo "-- Camera files found, copying"
81-
cp -r Cameras ${DATA_DIR}
81+
cp -r Cameras "${DATA_DIR}"
8282
fi
8383

8484
echo "-- Done"
@@ -95,13 +95,13 @@ echo "-- Copying extracted data to ${DATA_DIR}/vmaps"
9595
echo "-- Starting in 5 seconds"
9696
sleep 5
9797

98-
cd ${CLIENT_DIR}
99-
$VMAP4EXTRACTOR
98+
cd "${CLIENT_DIR}"
99+
"$VMAP4EXTRACTOR"
100100
mkdir vmaps
101-
$VMAP4ASSEMBLER Buildings vmaps
101+
"$VMAP4ASSEMBLER" Buildings vmaps
102102

103103
echo "-- Extraction complete, copying files"
104-
cp -r vmaps ${DATA_DIR}
104+
cp -r vmaps "${DATA_DIR}"
105105
echo "-- Done"
106106
echo
107107
}
@@ -115,11 +115,11 @@ echo "-- Copying extracted data to ${DATA_DIR}/mmaps"
115115
echo "-- Starting in 5 seconds"
116116
sleep 5
117117

118-
cd ${CLIENT_DIR}
118+
cd "${CLIENT_DIR}"
119119
mkdir mmaps
120-
$MMAPS_GENERATOR
120+
"$MMAPS_GENERATOR"
121121
echo "-- Extraction complete, copying files"
122-
cp -r mmaps ${DATA_DIR}
122+
cp -r mmaps "${DATA_DIR}"
123123
echo "-- Done"
124124
echo
125125
}
@@ -135,7 +135,7 @@ echo "Enter y to continue or anything else to cancel"
135135
read a
136136
if [[ ${a} = "y" ]]
137137
then
138-
cd ${CLIENT_DIR}
138+
cd "${CLIENT_DIR}"
139139
rm -fr Buildings Cameras dbc maps mmaps vmaps
140140
echo "Done"
141141
fi

dep/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ if(SERVERS OR TOOLS)
2020
add_subdirectory(utf8cpp)
2121
add_subdirectory(valgrind)
2222
add_subdirectory(openssl)
23-
add_subdirectory(jemalloc)
23+
if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT NOJEM)
24+
add_subdirectory(jemalloc)
25+
endif()
2426
add_subdirectory(argon2)
2527
add_subdirectory(short_alloc)
2628
endif()

dep/PackageList.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ efsw (Entropia File System Watcher - crossplatform file system watcher)
1818

1919
fmt (a small, safe and fast formatting library)
2020
https://github.com/fmtlib/fmt
21-
Version: 9.1.0 https://github.com/fmtlib/fmt/releases/tag/9.1.0
21+
Version: 10.2.1 https://github.com/fmtlib/fmt/releases/tag/10.2.1
2222

2323
G3D (a commercial-grade C++ 3D engine available as Open Source (BSD License)
2424
http://g3d.sourceforge.net/
2525
Version: 9.0-Release r4036
2626

2727
jemalloc (a general-purpose scalable concurrent malloc-implementation)
28-
http://www.canonware.com/jemalloc/
29-
Version: 5.2.1
28+
https://github.com/jemalloc/jemalloc
29+
Version: 5.3.0
3030

3131
libMPQ (a library for reading MPQ files)
3232
https://github.com/mbroemme/libmpq/

dep/fmt/include/fmt/args.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Formatting library for C++ - dynamic format arguments
1+
// Formatting library for C++ - dynamic argument lists
22
//
33
// Copyright (c) 2012 - present, Victor Zverovich
44
// All rights reserved.
@@ -22,8 +22,9 @@ template <typename T> struct is_reference_wrapper : std::false_type {};
2222
template <typename T>
2323
struct is_reference_wrapper<std::reference_wrapper<T>> : std::true_type {};
2424

25-
template <typename T> const T& unwrap(const T& v) { return v; }
26-
template <typename T> const T& unwrap(const std::reference_wrapper<T>& v) {
25+
template <typename T> auto unwrap(const T& v) -> const T& { return v; }
26+
template <typename T>
27+
auto unwrap(const std::reference_wrapper<T>& v) -> const T& {
2728
return static_cast<const T&>(v);
2829
}
2930

@@ -50,7 +51,7 @@ class dynamic_arg_list {
5051
std::unique_ptr<node<>> head_;
5152

5253
public:
53-
template <typename T, typename Arg> const T& push(const Arg& arg) {
54+
template <typename T, typename Arg> auto push(const Arg& arg) -> const T& {
5455
auto new_node = std::unique_ptr<typed_node<T>>(new typed_node<T>(arg));
5556
auto& value = new_node->value;
5657
new_node->next = std::move(head_);
@@ -110,14 +111,14 @@ class dynamic_format_arg_store
110111

111112
friend class basic_format_args<Context>;
112113

113-
unsigned long long get_types() const {
114+
auto get_types() const -> unsigned long long {
114115
return detail::is_unpacked_bit | data_.size() |
115116
(named_info_.empty()
116117
? 0ULL
117118
: static_cast<unsigned long long>(detail::has_named_args_bit));
118119
}
119120

120-
const basic_format_arg<Context>* data() const {
121+
auto data() const -> const basic_format_arg<Context>* {
121122
return named_info_.empty() ? data_.data() : data_.data() + 1;
122123
}
123124

0 commit comments

Comments
 (0)