Shauren
9fc5c4bc41
Core/PacketIO: Requeue packets handled with STATUS_LOGGEDIN received before player is fully loaded in one step after packet processing loop - reduces used locks from 3 per packet to 1 per packet
...
(cherry picked from commit 8086a39210 )
2016-03-12 23:49:39 +01:00
Vincent-Michael
f81488b90e
Core: Revert fail
...
(cherry picked from commit b5329d8a03 )
2016-03-12 21:46:56 +01:00
Vincent-Michael
d6f093681e
Core: Added missing overrides
...
(cherry picked from commit 5d584116fe )
2016-03-12 21:46:37 +01:00
Shauren
298d70476e
Core/Misc: Partial port of d9f1d6466d (refactoring)
2016-03-12 21:21:41 +01:00
Naios
fbe724fab9
Core/Common: Generalize platform specific includes in common/Platform
...
(cherry picked from commit 30517cb1d3 )
2016-03-11 19:09:56 +01:00
Naios
998607b106
Core/Common: Move singleton instances into compilation units
...
* Fixes issues when building shared libraries
(prevents gcc and clang from providing several instance)
(cherry picked from commit 5c91586797 )
2016-03-11 18:55:33 +01:00
treeston
224b42c53a
Util/Random: Add randtime(Milliseconds const&, Milliseconds const&) to supersede urandms(uint32,uint32) for scripts being ported to std::chrono.
2016-03-01 23:09:25 +01:00
joschiwald
ffdf75a233
Scripts/Spells: Glyph of Arcane Shot is affected by own debuffs on target only
2016-02-27 17:55:43 +01:00
joschiwald
9beeca79ac
Core/Logging: fixed default logger (partial reverts 0904858624)
2016-02-27 17:47:35 +01:00
Naios
b5369b7d87
Core/Common: Add a generic config helper to access built-in overwriteable paths.
...
* Adds CMAKE_COMMAND and CMAKE_BINARY_DIR to revision_data.h
* Move the source and mysql exe path handling out of the DBUpdater.
* Make some Config methods const for correctness.
* Remove C & CXX flags from revision_data.h
(was unused and didn't capture all cxx vars)
* Reorder the link order to prevent `ld` from ignoring the file
* Ref #15671
(cherry picked from commit 719159e207 )
2016-02-22 16:25:47 +01:00
Shauren
b2e03a7448
Core/Networking: Rewrite networking threading model
...
Each network thread has its own io_service - this means that all operations on a given socket except queueing packets run from a single thread, removing the need for locking
Sending packets now writes to a lockfree intermediate queue directly, encryption is applied in network thread if it was required at the time of sending the packet
(cherry picked from commit 97a79af470 )
2016-02-20 13:08:03 +01:00
Shauren
55ef8d80a3
Core/Utils: Moved rng functions to separate header and added utility functions to select a random element from a container where each element can have different chance of being selected
...
(cherry picked from commit ae20b2ab56 )
(cherry picked from commit 921d893c2a )
(cherry picked from commit 9ab10d6e68 )
(cherry picked from commit 00c878e73a )
(cherry picked from commit ff9c999334 )
(cherry picked from commit bc94bacce4 )
(cherry picked from commit d5b0ffbe9b )
2016-02-09 19:26:29 +01:00
Carbenium
1038df8d5b
Core/Util: Add a missing include
2016-01-22 20:22:45 +01:00
Rushor
923a368ac7
Update copyright note for 2016
2016-01-01 12:02:33 +01:00
treeston
c0faee0795
Core/Util: Add a urandms(min,max) helper to make urand(min*IN_MILLISECONDS, max*IN_MILLISECONDS) shorter to write for random time intervals (boss scripts).
2015-11-28 23:53:04 +01:00
Shauren
7631ec444e
Core/DBLayer: Improve error message from 0a27f8bce2
...
(cherry picked from commit d31706b07e )
2015-11-14 13:54:36 +01:00
Vincent-Michael
7d5e7102cd
Core: Whitespace cleanup
2015-11-07 20:01:53 +01:00
Shauren
3158605603
Core/Conditions: Optimizations part 1 - use containers more suited for their role
...
(cherry picked from commit 9fa938f3e0 )
2015-10-31 20:26:40 +01:00
Shauren
dc74454356
Core/Conditions: Type renaming
...
(cherry picked from commit 5e0cee85dd )
2015-10-31 20:26:40 +01:00
Shauren
c5d36a3183
Core/Misc: Added a few stl header includes to Common.h
...
(cherry picked from commit 89b902b4e0 )
2015-10-31 18:37:54 +01:00
Shauren
7fb63478bb
Buildsystem: Added dependency on revision_data to common project. Simply including the header in GitRevision.cpp is not enough to rebuild that file after updating sources
...
Fixes having to build twice before GitRevision returns accurate info.
(cherry picked from commit 65999801d3 )
2015-10-31 17:30:59 +01:00
Shauren
1de03cf107
Core/Players: Implemented serverside validation of reserved/profane names
...
Closes #15357
New library dependency: Boost.Regex
(cherry picked from commit b564c10b13 )
2015-10-31 17:27:45 +01:00
Shauren
38c7a37530
Core/Crash reporting: Fixed windows version detection for 8.1 and newer
...
(cherry picked from commit 4c866a0af0 )
2015-10-29 18:59:24 +01:00
Shauren
b1b72dafd0
Warning fixes
...
(cherry picked from commit 82db416b5d )
2015-10-29 18:56:26 +01:00
Naios
d96db56f03
Core/Tools: Fix brutal linking in mmaps extractor.
...
* caused warnings with shared linking
* ref #15671
(cherry picked from commit 13654bac2c )
2015-10-29 18:56:25 +01:00
Shauren
0d0c2e1ca6
Core/Misc: Fixed macro redefinition warnings when building for running under helgrind
...
(cherry picked from commit ec5700c2a2 )
2015-09-27 13:57:15 +02:00
Shauren
7af320c419
Partially revert "Core/Build: Added missing abort() calls on error handlers"
...
This reverts commit 8ea17647e6 .
2015-09-22 18:08:49 +02:00
StormBytePP
7b245a0b6b
Core: Added ABORT() macro to prevent the usage of ASSERT(false) as a quick hack to crash the core misusing assert
2015-09-21 15:11:06 +02:00
Shauren
2056961aae
Core/Players: Changed multi-segment taxi paths to fly nearby flight masters along the way, not directly through them
...
* Taxi cost on multi-segment paths is now charged per segment when it is started
2015-09-12 20:15:34 +02:00
StormBytePP
405f823f68
Core/BuildSystem: Merged crypto and gitrevision into common, cleaned include directory lists (to mimic 6.x buildsystem)
2015-08-24 03:38:54 +02:00
Shauren
1a553b780b
Build fixes
...
Conflicts:
src/server/game/Handlers/ItemHandler.cpp
2015-08-21 14:02:03 +01:00
jackpoz
51a2a3fa93
Core/Misc: Fix issues reported by static analysis
...
Coverity defect IDs: 1316687, 1316688
2015-08-20 15:42:51 +02:00
DDuarte
f2a1d3152e
Build/Cmake: Fix a typo in common's CMakeLists.txt
2015-08-17 02:23:47 +01:00
StormBytePP
0cc3d883e1
Core/Build: Renamed Revision.h to GitRevision.h to avoid compile failure when old revision.h file is present
2015-08-16 23:08:01 +02:00
StormBytePP
1f66d719f2
Core/BuildSystem: Merge collision, debugging, threading, utilities and configuration into "common" which does not depend on shared anymore and moved database out of shared library
...
These changes enables to build tools only without even having MySQL installed
2015-08-16 21:23:15 +02:00