Commit Graph
305 Commits
Author SHA1 Message Date
funjoker b7a9e6db72 Dep/Boost: Drop windows boost hacks (#29358) 2023-10-18 23:18:50 +02:00
Ovahlord b49f95e1e9 Build: added support for unity builds in most projects except for StormLib, ZLib and Scripts 2023-10-09 21:40:38 +02:00
Shauren 4a28f34563 Core/Misc: Silence compile warning in boost::process with version 1.83
(cherry picked from commit d8c98579d4a2c4191e42c2542901274ffe53083c)
2023-09-14 13:33:34 +02:00
Ovahlord 852f0cbc52 Core/Misc: fixed a couple warnings reported by file analysis 2023-08-25 11:53:53 +02:00
Shauren bfd31d59c2 Core/MMaps: Fixed pathing for objects that have terrain swaps active 2023-08-08 00:21:48 +02:00
Shauren 06aacf757d Core/Threading: Modernize ProducerConsumerQueue a bit to fix GCC build
Closes #28607
2023-07-20 23:07:18 +02:00
Giacomo Pozzoni 8831cc1086 Core/DBLayer: Add QueueSize() method
Add QueueSize() method to database objects (Login, Character and World) that returns how many tasks are queued.
Include the queue size of the 3 databases in ".server debug" command

* Make the code less threadsafe

* Send data to InfluxDB
2023-07-20 23:07:08 +02:00
Ovahlord 228e3059c9 Core/Crypto: moved away from deprecated SHA1 methods in CalculateSHA1Hash 2023-07-16 22:02:13 +02:00
Ovahlord 63f85a613f nopch fix 2023-07-07 21:51:14 +02:00
Ovahlord a7b244253a Crypto/SHA256: moved away from deprecated OpenSSL methods 2023-07-07 21:47:55 +02:00
Ovahlord e8cfcd7016 Crypto/ARC4: use the correct cipher reference in ctors 2023-07-07 21:27:19 +02:00
Ovahlord d20c2f2c34 Core/Crypto: switched away from deprecated openSSL functions in HmacHash 2023-07-07 21:23:58 +02:00
Daniel S. Reichenbach a7527a8698 Core/Misc: added support for OpenSSL 3, dropped support for OpenSSL 1.0 and fixed build for Fixed build for MariaDB 2023-07-07 21:01:49 +02:00
Ovahlord f34534465a Build: enable C++20 and updated all compiler requirements
* ported some header and cmake updates from master branch
2023-07-04 23:49:57 +02:00
Shauren d53de05f93 Core/Misc: Prefix include guard to avoid possible conflict with external library 2023-07-02 15:15:58 +02:00
Peter Keresztes Schmidt 1ece540577 Common/Crypto: #ifdef out unnecessary locking code for OpenSSL 1.1+ 2023-07-02 15:15:04 +02:00
Treeston d568eb7871 Core/Common: fix a bug in BigNumber::AsByteArray that was causing incorrect output in 1/256 cases with explicit minSize (iff MSB zero)
(cherry picked from commit b2b9880377f75a333b94a71ce6076016b8285e0b)
2023-05-19 22:38:42 +02:00
ipriver 408c386830 fixed indentation for cmake files
(cherry picked from commit a46d047f9466c6f16597755bb7c771a9d1a147f2)
(cherry picked from commit bde36062b7a0bf621086e73a5d419cd8637e9e96)
2023-05-19 22:26:00 +02:00
Shauren 3e8f413b0c Core/OutdoorPvP: Fixed crash happening by accessing freed memory 2023-01-09 18:19:08 +01:00
ModoXandGosha 8a7dfbbd1d Core/Vmaps: Fix inconsistency of hitInstance and hitModel to cause wrong area ids (#28632)
Closes #28326

Co-authored-by: Gosha <284210+Lordron@users.noreply.github.com>
2022-12-31 15:37:13 +01:00
Ovahlord f879d95589 Core/Utils: sync IteratorPair utilities with master branch 2022-12-29 21:59:11 +01:00
Ovahlord c6180d28c4 Core/Random: switch to 128bit engine and fully rely on its builtin seed initialization methods 2022-10-31 15:56:43 +01:00
Ovahlord 2e47ee3f4c Core/Util: replace SMFT rng with PCG 2022-10-30 12:04:30 +01:00
Shauren 6daa2ce262 Core/Threading: Create ThreadPool class
# Conflicts:
#	src/server/worldserver/Main.cpp
2022-10-20 22:21:41 +02:00
Shauren 0ba58aeb6e Core/Maps: Move terrain data handling out of Map class
Partial port of cmangos/mangos-wotlk@ff5232c648
2022-10-08 00:25:32 +02:00
Shauren 21e9854686 Core/Maps & Extractors: Move copypasted map file headers into a single shared file and replace #defines with enums 2022-10-07 22:16:46 +02:00
Shauren 8c447da29d Core/Misc: Rename MapDefines.h to MMapDefines.h as it contains mmap defines exclusively 2022-10-07 19:09:42 +02:00
Ovahlord 1c77132c55 Core/Random: no longer use bernoulli_distribution for roll chances 2022-06-24 22:44:08 +02:00
Shauren 338e9d8033 Core/GameObjects: Use all axis rotations for gameobject model collision, not just orientation 2022-06-20 15:21:55 +02:00
Shauren 8733f6fafa Core/Utils: Added helper function to make creating unique_ptr with custom deleters more convenient
# Conflicts:
#	src/server/game/World/World.cpp
2022-06-19 21:42:45 +02:00
Ovahlord b1e99db2a4 Core/Util: ported Coalesce template 2022-06-19 18:20:42 +02:00
Shauren b070267898 Core/Misc: Remove uses of std::aligned_storage (deprecated in future c++ standard)
# Conflicts:
#	src/common/Threading/MPSCQueue.h
#	src/server/game/Server/Packets/AuctionHousePackets.cpp
2022-05-18 13:52:21 +02:00
Shauren eff7e72c97 Core/CrashHandler: Support retrieving windows version names for all future versions 2022-04-17 01:23:52 +02:00
Ovahlord 7a2e26d42e Core/Random: use std::bernoulli_distribution for roll_chance_ calls to get more reliable roll results for yes-no scenarios 2022-03-10 23:10:49 +01:00
Shauren 5ad23e61e4 Dep: Raise required boost versions to 1.73 on windows and 1.71 on linux and remove compatibility code for unsupported versions
# Conflicts:
#	dep/boost/CMakeLists.txt
2022-02-20 20:27:35 +01:00
jackpoz 8746d9f56a Core/Misc: Fix static analysis issues
(cherry picked from commit 486b03234304526d8f7d66ff0d99ea3de975745e)
2022-02-16 04:49:24 +01:00
ariel- 29166a1d0a Core/Util: avoid one useless copy when adding stuff into a HookList
(cherry picked from commit 077b5aec9ede78034ba2ec4838b72e8121dab7ce)
2022-01-22 20:27:51 +01:00
Ovahlord db769f5e52 Core/Units: safeguard Unit::CancelSpellMissiles against triggering an assert in BasicEvent::ScheduleAbort when trying to cancel spell events that already are about to the aborted 2022-01-17 10:59:41 +01:00
Shauren e936255728 Core/Misc: Exclude boost 1.78 and newer from boost_1_73_process_windows_nopch hack
(cherry picked from commit a93776728987e3ffa220e8fe5be73a34c5e3f965)
2021-12-22 17:40:03 +01:00
ariel- af98e8516c Core/Auras: reworked multiplicative AuraEffects calculation 2021-11-28 12:14:05 +01:00
Shauren 21e7ffe1b7 Core/Misc: Fix windows nopch build
Closes #25363
2021-09-01 20:33:48 +02:00
Ovahlord ce1901524f Tools/VMapExtrator: ported m2 model bounds issue fix from master branch 2021-08-28 14:39:19 +02:00
Shauren 659cb0992f Core/Vmaps: Fixed crash in unloading vmaps
Closes #26536
2021-05-22 10:24:47 +02:00
Ovahlord 7a1ce34333 fixed a warning 2021-04-25 09:50:48 +02:00
Shauren 0cfbb218ce Core/Vmaps: Extract more doodad sets 2021-04-25 08:57:31 +02:00
Shauren a7089f5b26 Core/Vmaps: Reduce memory used by vmaps, part 2 2021-04-25 07:29:08 +02:00
Shauren e86ae8987b Core/Vmaps: Reduce memory used by vmaps (and their size, slightly) 2021-04-25 07:27:37 +02:00
killerwife d4b90631fe Tools/Map Extractor: Fix water height redundancy algorithm ignoring "no water" 2021-04-05 13:41:44 +02:00
Giacomo Pozzoni 3cc50b98a6 CI/CircleCI: Expose binaries built on Circle CI as docker images in the Circle CI artifacts 2021-03-11 10:53:51 +01:00
Shauren b9c72c3c7f Dep/Boost: Support for boost 1.74 2021-03-11 10:37:55 +01:00