Commit Graph

532 Commits

Author SHA1 Message Date
ModoX
c5735edcc8 Core/Utilities: Added timer series queuing to EventMap (#29420) 2023-11-10 20:15:37 +01:00
Shauren
9894f6b802 Core/Random: Changed random functions returning doubles to return floats
* They were all cast to float at use anyway
* Improves roll_chance_f performance (rand32() is now called internally by uniform_real_distribution once instead of twice)
2023-10-31 20:20:00 +01:00
funjoker
17c69368a3 Dep/Boost: Drop windows boost hacks (#29358) 2023-10-13 21:10:01 +02:00
Shauren
e161874695 Core/Realms: Replaced hardcoded realm category list with Cfg_Categories.db2 2023-10-05 23:57:25 +02:00
Shauren
752309fbe3 Core/Misc: mac build fix 2023-09-17 01:07:27 +02:00
Shauren
1fe73cd532 Core/SSL: Support more certificate formats 2023-09-16 00:41:07 +02:00
Shauren
d8c98579d4 Core/Misc: Silence compile warning in boost::process with version 1.83 2023-09-13 00:29:25 +02:00
Shauren
b51afbdfb9 Core/Logging: Fixed log message order not being preserved when async logging was enabled and ThreadPool was greater than 1
Despite that issue, logging was still threadsafe, just not ordered properly
2023-08-25 10:40:47 +02:00
Shauren
f0a862e71b Core/Misc: Modernize comparison operators 2023-08-24 00:51:26 +02:00
Shauren
9e1b97900e Core/Auras: Minor optimization for Unit object creation with msvc (not allocating a list end sentinel node for all of the 500 lists stored in Unit for each aura type) 2023-08-18 18:23:29 +02:00
Shauren
f18233822d Core/Misc: Fixed minor formatting mistakes 2023-08-16 18:17:09 +02:00
Shauren
86725ed926 Core/MMaps: Fixed pathing for objects that have terrain swaps active 2023-08-08 00:08:10 +02:00
Shauren
576ca241ec Core/Logging: Minor compile time reducing refactor of log message formatting 2023-07-23 00:27:26 +02:00
Shauren
8b426af763 Core/Bnet: Send hostnames in portal requests for launcherlogin 2023-07-20 00:38:07 +02:00
Shauren
d949f86e28 Scripts/Spells: Allow using templated spell script with multiple template arguments in RegisterSpellScriptWithArgs
* Also fixed some script conversion issues
2023-07-19 13:44:18 +02:00
Shauren
7d8bc543f9 Core/Network: Don't send localhost addresses to external clients 2023-07-18 18:09:30 +02:00
Shauren
dfbf09f4b9 GCC build fix 2023-07-17 20:32:07 +02:00
Ovahlord
38440996ee Core/Common: Use the [[unlikely]] keyword in all assert, warning and error macros to allow further compiler optimization (#29124) 2023-07-16 16:11:41 +02:00
Shauren
6be536a73b Core/Network: Refactor local/remote ip address selection code and allow using hostnames in LoginREST bnetserver config options 2023-07-15 00:45:16 +02:00
Смердокрыл
74a4dc46b4 Core/Config: Implement reading config overrides from subdirectory (#29068)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-06-09 20:36:03 +02:00
Shauren
3260b94dd6 Core/Misc: Replace string to int conversion functions from Common.h with c++17 std::from_chars based ones Trinity::StringTo 2023-05-13 15:46:27 +02:00
Gosha
eb7f02849c Core/Misc: TaskScheduler cleanup (#28862)
-Pass std::chrono types by value, they are small enough to not be passed around by const&
-Same applied to Optional<group_t>
-Replace EmptyCallback with nullptr

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-05-06 23:59:37 +02:00
Shauren
3bd4c21754 Core/DataStores: Remove temporary 10.0.7 workraround 2023-05-05 00:45:11 +02:00
Shauren
16bc74667e Core: Update to 10.1 2023-05-04 17:00:52 +02:00
Shauren
f540477fed Core/DataStores: Optimized DB2Storage::begin to remove searching for lowest id on every call 2023-04-27 00:17:25 +02:00
Shauren
7eb4a67ae7 Core/DataStores: Changed empty string checks in db2 loaders to not rely on undefined behavior (comparing pointers to different objects/arrays with greater/less) 2023-04-26 00:19:36 +02:00
Shauren
25a1d436c8 Core/DataStores: Added temporary workaround for buggy db2 metadata in build 10.0.7.48999 2023-04-18 19:35:49 +02:00
Shauren
ffc06b27d0 Core/DataStores: Minor db2 loader cleanup 2023-04-18 18:46:08 +02:00
Shauren
fff797aff5 Core/Misc: Fixed IpLocation crashes on invalid ip input 2023-04-13 00:19:29 +02:00
Shauren
083b8d6c84 Core/Misc: Fix build with libc++
Closes #28909
2023-04-10 00:08:32 +02:00
Meji
d22711bf97 Core/Misc: Fix typos in banner 2023-04-08 16:53:45 +02:00
Shauren
7b31080258 Core/Misc: Modernize code a bit by replacing std::tie with either structured bindings or operator<=> 2023-04-06 17:46:58 +02:00
Ghaster
5c9283244b Core/DataStores: Fixed loading CommonData when IdTable is present (#28853) 2023-03-11 15:38:46 +01:00
Shauren
01965086ef Core/DataStores: Fixed string fields containing empty strings in some 10.0.5 db2 files
Closes #28805
2023-02-03 23:41:31 +01:00
Shauren
7395d75b5a Core/Misc: Fixed clang 15 warnings 2023-01-31 18:51:31 +01:00
Shauren
eab14dc66a Core/Logging: Fixed remaining uses of STRING_VIEW_FMT in log statements 2023-01-10 19:15:10 +01:00
Shauren
17b20a3353 Dep/fmt: Upgrade to 9.1.0 2023-01-08 22:03:44 +01:00
Shauren
d791afae1d Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api) 2023-01-08 21:16:53 +01:00
Shauren
92ed5e8af1 Core/Misc: Include cleanup, 2023 edition 2023-01-07 22:38:21 +01:00
Shauren
a53e4a5756 Core/Misc: Replace enable_if overload selection with if constexpr 2023-01-07 22:38:21 +01:00
Shauren
7830e5a7a1 Core/Misc: Migrate our c++20 advstd to standard features 2023-01-07 22:38:21 +01:00
Shauren
280d83ecc7 Core/Misc: Remove boost::container::small_vector from header files 2023-01-06 16:54:43 +01:00
Shauren
e8e330addd Core/Misc: Remove boost::heap::fibonacci_heap from header files 2023-01-06 16:54:16 +01:00
Shauren
b65c3f5f4a Core/Misc: Replaced boost::container::static_vector in packet classes with plain vector with custom static storage allocatlr 2023-01-06 16:52:44 +01:00
Shauren
42fbcf2fc5 Core/Utils: Replace boost flat_set with our own 2023-01-06 16:51:01 +01:00
Shauren
585900f42d Core/Misc: Added a include hack for msvc <chrono> to use only c++17 bits from it 2023-01-05 12:16:21 +01:00
ModoX
6ce6665992 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-30 00:02:40 +01:00
Shauren
a2ec80b14c Core/vmaps: Stop worldserver startup when gameobject models cannot be loaded 2022-12-20 16:01:28 +01:00
Shauren
85d5f4bc06 Core/Threading: Modernize ProducerConsumerQueue a bit to fix GCC build
Closes #28607
2022-12-20 01:03:07 +01:00
Shauren
b1805d291c Core/DataStores: Fixed loading empty db2 files 2022-12-14 00:27:43 +01:00