aboutsummaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2019-07-04Local-only mode fix (#23546)SolarisSDK
* Local-only mode fix In response to issue #21309 * Full patch also for boost 1.66 and newer
2019-04-28Core/CrashHandler: Update placeholder textjackpoz
2019-04-28Core/CrashHandler: Remove sensible data from crashlogsjackpoz
2019-04-27Shared/Metric: Fix a rare memory leakjackpoz
Fix a memory leak in Metric happening only when enabling/disabling Metric from configs at runtime, leaking the metric added between last SendBatch() call and the ScheduleSend() call in the same function. The only way to reproduce this is to actually freeze the thread calling SendBatch(), disable metric, reload config, unfreeze the thread.
2019-04-19Core/Calendar: Improve calendar timezone handlingjackpoz
Improve calendar timezone handling by at least creating events with the correct time if both client and server are in the same timezone. There is currently no information received from the client about in which timezone it is.
2019-04-15Core/Movement: Add time synchronisation (#18189)Chaouki Dhib
2019-04-14Core/Dep: Boost 1.70 compatibilityShauren
(cherry picked from commit bcda8dd7421cfa1950a3e47081f2f28d032d38ac)
2019-04-02Add missing fcloseShauren
(cherry picked from commit a71d4b70ff8329878967652b131ce811ad699aa6)
2019-03-31Core/Misc: Fix GCC 8 warningsjackpoz
2019-02-23Warning fixShauren
(cherry picked from commit 87278b69f08732ddba735f0e4283f89b484ba5d6)
2019-02-23Tools/mmaps_generator: Give land priority during area merges over liquidsShauren
Closes #21700 (cherry picked from commit edb2b16f546d18bb66f1527dddb6189f617ec1b3)
2019-02-23Tools:Shauren
* mapextractor - fixed compressing liquid data * vmapextractor - fixed extracting liquids inside WMOs * vmapextractor - implemented new WMO flags * vmapextractor - store model type for gameobject models * mmap_generator - fixed processing liquids broken in e5d23103f37c40d2e946fa0e2db66d2f527ad9af (cherry picked from commit 2c64bb97e6fddcbd15ef39fde3d0828bbf600ec6)
2019-02-16Core/Misc: Improved error message reported by ASSERT_NOTNULLShauren
(cherry picked from commit d184768bbc333af0b34e860839d71c1bd310f7e4)
2019-02-15Fix buildShauren
2019-02-15Fix build for older compilersShauren
2019-02-15Core/Misc: Added lambda support to EventProcessorShauren
Closes #22909
2019-02-15Shared/Utilities: Handle string format exceptionsGiacomo Pozzoni
Handle StringFormat() exceptions in case of malformed string format to avoid causing unhandled exception crashes
2019-01-26Dep/Recast: Update recastnavigation to ↵jackpoz
https://github.com/recastnavigation/recastnavigation/commit/14b2631527c4792e95b2c78ebfa8ac4cd3413363 Rebuilding mmaps IS required
2019-01-19Core/Misc: Fix clang 6.0 warningsjackpoz
Ported from e9bcae1fada64bc3400c3204f7365edcecd640cc
2019-01-16Core/Objects: increase sight range of objects & correct general default ↵Kittnz
visibility distance (#22891) This can be used for anything really. Note: This does not make the object active. #21111 #21681
2019-01-12Core/Utils: Handle UTF-8 conversion errorsjackpoz
Replace the output string when a UTF-8 conversion error happen with an error message instead of using an empty string, swallowing any message that the caller wanted to log.
2019-01-01Happy New Year, folks. It's 2019!Treeston
2018-12-25Core/Utils: some code style adjustments, 6d6077e follow-upTreeston
2018-12-25Core/Utils: Fix Unicode handlingTreeston
2018-12-19Shared/Misc: Use C99 conformant snprintf and vsnprintf in Visual Studio (#22876)Giacomo Pozzoni
2018-12-16Core/Misc: Fix vsnprintf usage in ASSERT()jackpoz
Fix vsnprintf to follow standard definition and not some old VC++ behavior, not requiring to include the '\0' character in the count parameter
2018-12-14Core/Misc: Log more information in asserts (#22783)Giacomo Pozzoni
* Core/Misc: Log more information in asserts Add a new function GetDebugInfos() to types that could trigger an ASSERT() to easily include more useful information in crashlogs. This is an initial commit that requires many more commits to implement the new GetDebugInfos() function in all required types. If the type doesn't have the function, the global default one is picked which doesn't log anything. * Core/Misc: Fix dynamic build Add missing attribute for dynamic build * Core/Misc: Fix gcc/clang build * Core/Misc: Rename GetDebugInfos() to GetDebugInfo() * Core/Misc: Fix FormatAssertionMessage() adding an extra '\0' * Core/Misc: Add GetDebugInfo support to Unit * Core/Misc: Add GetDebugInfo support to Creature * Core/Misc: Add more info to GetDebugInfo for Creature * Core/Misc: Add GetDebugInfo support to GameObject * Core/Misc: Add GetDebugInfo support to Player * Core/Misc: Add more GetDebugInfo info * Core/Misc: Add GetDebugInfo support to Item * Core/Misc: Add GetDebugInfo support to Bag * Core/Misc: Add GetDebugInfo support to Transport * Core/Misc: Add GetDebugInfo support to TempSummon, Minion, Guardian, Pet * Core/Misc: Add GetDebugInfo support to Map, InstanceMap * Core/Misc: Add GetDebugInfo support to Spell * Core/Misc: Fix build warning * Core/Misc: Add GetDebugInfo support to Aura * Core/Misc: Add GetDebugInfo support to UnitAI
2018-11-14Fix nopch buildShauren
2018-11-11Core/Util: Redesign SmartEnum to properly work for large enums (>64 entries) ↵Treeston
and play nice with IDEs (PR #22768)
2018-10-27Fix invalid arguments to string format in Trinity::FatalWarpten
Isn't whatever is used nowadays to make this stuff safe supposed to prevent this sort of stuff?
2018-10-26338e8ba follow-up (more constexpr)Treeston
2018-10-26Core/Misc: Partial merge of 3.3.5-dbedit:Treeston
- Added SmartEnum.h for enum iteration, stringification, and more, courtesy of krabicezpapundeklu/smart_enum - Moved a bunch of enums in SharedDefines.h to the new system - Miscellaneous utility methods ported
2018-09-27cleanup unused variable error (2a607e6 follow-up)Treeston
2018-09-27Core/Misc: A few more advstd imports from C++17Treeston
2018-09-27Core/Misc: constexpr a bunch of things, and a missing include of Windows.h ↵Treeston
somewhere (that last one wasn't me!)
2018-09-13[3.3.5] Core/Chat: Unify chat hyperlink parsing (PR #22417)Treeston
- Validate most link properties all the time - If enabled, also validate link text (needs locale) - Instead of blocking the entire message, sanitize it - Apply filtering to DND/AFK messages. Closes #22399
2018-09-07Scripts/Commands: New argument parsing methodology (PR #22363)Treeston
- Detect the arguments accepted by the command handler - Tokenize out those arguments automatically and feed them to the handler - Unmatched rest of the string can be accepted by trailing char const* or CommandArgs*
2018-08-29Core/CrashHandler: Include assertion messages in crash reportsShauren
2018-08-26Utilities/EventProcessor: Added a overload to AddEventAtOffset accept rand timeKeader
2018-07-19Common/Containers: Eliminate a edge case that could potentially lead to ↵Treeston
object invalidation.
2018-07-18Misc: Pass std::chrono types by value everywhere.Treeston
2018-06-23Core/Misc: Improved ip2location code and set it to disabled by defaultShauren
2018-06-23Nopch fix (#22077)Gildor
2018-06-23Common: Replace ip2nation by ip2location. (#21957)Gooyeth
Replace ip2nation by ip2location. Download: https://lite.ip2location.com/database/ip-country
2018-04-27Dep/Boost: Fix crash in Boostjackpoz
Work around a NULL dereference exception happening in boost::asio::ip::tcp::resolver::results_type, resulting in a crash when trying to bind on an address that cannot be resolved. Fixes #21884
2018-04-19Build: fix noPCHccrs
2018-04-07Core/Maps: Adjusted logic in GetFullTerrainStatusForPosition to closer match ↵Shauren
what the client does regarding being inside WMOs Closes #21625 Closes #21624 Closes #21516
2018-04-07Revert "Core/Entities: Reduce the probability of units dropping under the ↵Shauren
map (#21322)" This reverts commit 9e0faace9a5114fc2324c2c601ba943272e0d6ff.
2018-04-06Core/Movement: Replace old TargetedMovementGenerator into ↵Treeston
ChaseMovementGenerator and FollowMovementGenerator, full rewrite for both. - Chase to angle is now functional. Pets use this to chase behind the target. Closes #19925. - Chase to arbitrary range interval works. Not used anywhere, but you can technically make hunter-like mobs. - Pets now follow the hunter cleanly and without stutter stepping. Also fix some other things. Closes #8924.
2018-03-10Core/CrashHandler: Fixed generating crash logs from CRT debug assertionsShauren
(cherry picked from commit abdf6479ddbf42c8b53cb943c54203211ceb0691)