aboutsummaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2017-10-16Dep/fmt: Update fmt to fmtlib/fmt@5f39721c0a4Naios
* Rename cppformat to fmt in the PackageList.txt
2017-08-11Core/Misc: Remove Whitespacessirikfoll
2017-07-29Core/Misc: Util changesShauren
* Move IteratorPair to its own header * Add AsUnderlyingType function to cast enum value to its underlying type (avoids repeating std::underlying_type everywhere) (cherry picked from commit fdd9227b232db9aae9bc4b2c60ca4de2cdaa0b54)
2017-07-17Core/Misc: Fix static analysis issuesjackpoz
2017-07-17Tools: Automatically create directories for tools (#17971)keke222
2017-07-16Core/Misc: Fix static analysis issuesjackpoz
2017-07-06Utilities/Containers: New RandomResize implementation with guaranteed ↵Treeston
asymptotic linear time for all container types (#19974)
2017-07-01Nopch fix 2Shauren
2017-07-01[3.3.5] Combat/Threat rewrite - prep & refactor (#19966)Treeston
* Combat/Threat rewrite (PR #19930) prep work. Mostly refactors, and a compatibility layer on ThreatManager/HostileReference that allows scripts to be changed already.
2017-06-22Buildsystem: Minor PCH building changesShauren
* *PCH.cpp are now only compiled with MSVC, other compilers use custom helper commands to generate the precompiled header * Don't call the linker for pch helpertargets (cherry picked from commit 137f5e78877ef1b81f4dca68dd43268e325aeeed)
2017-06-19Core: ported headers cleanup from master branchariel-
2017-06-08Core/Vmaps: build fix mk IIariel-
2017-06-08Core/Vmaps: build fixariel-
2017-06-08Core/Vmaps: Fixed getting map height near large gameobjects like LK platformShauren
Updates #19865
2017-06-08[3.3.5] Get zone/area IDs from vmap data in the liquid update (#19840)Treeston
* Add new method Map::getFullVMapDataForPosition to get area info and liquid info in a single vmap lookup * Use this lookup in Map:: relocation methods to update m_areaId and m_zoneId fields on WorldObject * Adjust GetZoneId/GetAreaId on WorldObject to always return these cached fields * Clean up liquid state handling on Unit and Player * Hand floor's Z coord up through GetFullTerrainStatusForPosition, use it to update a new field in WorldObject, and use that to feed a new GetFloorZ call on WorldObject. Closes #16489
2017-06-05Core/VMaps: Fix LoS in Strand of the Ancients (#19847)Golrag
Core/Collision: Fixed MOPY chunk flags enum. Also avoid loading destructible WMOs into vmaps. VMap re-extraction is required. Closes #15798.
2017-06-05Core/Utils: restored previous behaviour of RandomResizeariel-
2017-06-03Core/Utilities: Rename RandomResizeList->RandomResize as it is no longer ↵Shauren
restricted to a list * Also fix gcc build (cherry picked from commit f097e341f5afcac2dd0ae9dbb265201c0de2a934)
2017-06-03Core/Utils: Changed all Trinity::Containers utilities to work on all ↵Shauren
container types (including arrays where it makes sense) * Added MapGetValuePtr to allow writing `if (Val* v = MapGetValuePtr(map, key))` * Added utility IteratorPair class with begin/end methods and MapEqualRange for use in range for syntax with multimaps (cherry picked from commit a1e3b54e076bf0361d23ace53703a4e501354d7c)
2017-05-23Core/Misc: Prefix all preprocessor defines from CompilerDefs with TRINITY_ ↵Shauren
to avoid conflicts (PLATFORM_WINDOWS is used/defined by CascLib) (cherry picked from commit b8db320bf14e327bcd12279871b914d8635ef122)
2017-04-25Core/Misc: Fix static analysis issuesjackpoz
2017-04-22Build: Added support for boost 1.64ariel-
Build: Added 1.64 Boost version to FindBoost (cherry-picked from commit 5233caf0920689c7796f4147e5b7506343d707bb) Build: Fixed build with boost 1.64 (cherry-picked from commit a3dec5cb753410dba5c03c70343afd00b905e920)
2017-04-11Core/Random: Remove no longer needed hack for VS 2013Shauren
(cherry picked from commit 59fe9087447dc58c3f41fb6f647bc2b50a95b9b5)
2017-04-08Core/Misc: Fix static analysis issuesjackpoz
2017-03-19Core/Crash: Refactor and fixesjackpoz
Code cleanup. Fix buffer overflow crash. Fix type being truncated to 199 characters.
2017-02-27Core/Auras: reworked multiplicative AuraEffects calculationariel-
- Splitted containers for flat modifiers and pct modifiers, as they now have different handling - Amount is now multiplied only on apply; on unapply, iterate through auras and reset the counter - Fixes many cases of rounding error due to applying/unapplying of small factors - Allows amounts to be zeroed (ie with an AuraEffect of amount -100) - Do a partial revert of 6dc37a9add631888fe5fbcd43d19c2b07bed8a57, auras should update amounts only for items allowed (ie no more giving crit to a sword while having an axe in the other hand and being Poleaxe spec'd) - SPELL_AURA_MOD_SCALE now scales additively, rather than multiplicatively (checked in sniffs) Closes #18687
2017-02-25Core/Misc: Fix static analysis issuesjackpoz
2017-02-11Core/Misc: Fix static analysis issuesjackpoz
2017-02-06Core/Misc: Added regex compatibility layer to fall back to boost::regex for ↵Shauren
really old compiler (cherry picked from commit b6f1f8405f57e3b65c3b838ea87141716023bc72)
2017-02-05Core/Spells: Remade trajectory target selection (#19048)xinef1
* Remade trajectory target selection * Added possibility to apply conditions to trajectory spells * Properly recalculate delay time if CMSG_UPDATE_PROJECTILE_POSITION is received
2017-01-23Core/Util: avoid one useless copy when adding stuff into a HookListariel-
2017-01-22Core/Vmaps: Changed error message when loading outdated vmapsShauren
Closes #18431 Closes #18857
2017-01-21Fix static analysis issuesShauren
CID 1291964 CID 1292775 (cherry picked from commit 6767bbc95f46df4b62c8131a39a132d3f9bb8a26) Conflicts: src/server/game/Entities/Player/Player.cpp src/server/game/Spells/SpellHistory.h src/server/game/Spells/SpellInfo.cpp
2017-01-21Core/Collision: fix no-PCH buildariel-
2017-01-21Core/Vmaps: Stop M2s from occluding for spellcast LoSHelloKitty
Closes #18528
2017-01-02Update Copyright notice for 2017tkrokli
Happy new year!
2016-12-29Dep: Update fmt (cppformat) to 3.0.1 ↵DDuarte
https://github.com/fmtlib/fmt/commit/7fa8f8fa48b0903deab5bb42e6760477173ac485 Also renamed cppformat to fmt
2016-12-03Correct Nav type for WMO objects (#18364)zori
* Tools/MMaps: Correct liquid type for WMO objects * MMaps: Update version to 6
2016-12-02Core/Maps: bumping Vmap version after 2402f476424531a175d9a016f433321f00608501ariel-
Re-extracting vmaps is required
2016-11-28Fix typo in VMap BIH generation (#18297)Aokromes
Fix typo in VMap BIH generation By zorix
2016-11-20Core/Auras: Rewritten conditionally applying ↵Shauren
SPELL_AURA_MOD_WEAPON_CRIT_PERCENT, SPELL_AURA_MOD_DAMAGE_DONE and SPELL_AURA_MOD_DAMAGE_PERCENT_DONE auras * Now the entire aura is removed when changing equipment * All aura types can now depend on equipped items (cherry picked from commit b9f7b500a362736235fc917ce4f34aa8520eb651)
2016-11-14Core/Utils: build fixariel-
2016-11-14Core/ScriptMgr: use vector instead of list to contain Spell and Aura scripts ↵ariel-
and hooks
2016-10-31Shared/Metric: Initial support for tag value escapingjackpoz
Fix #18175
2016-09-13Common/Utilities: More std::chrono overloads for EventMap. Specifying 2 ↵treeston
std::chrono types now gives you a random (to milliseconds) time in that interval (inclusive) for (Re)ScheduleEvent.
2016-08-29Core/Define: Remove the conditional macro for constexpr.Naios
* Not needed anymore since the requirements were raised to MSVC 2015.
2016-08-29Core/Common: Correct the linking of localeNamesNaios
2016-08-17Tools/MMapGenerator: Avoid saving uninitialized padding bytes to diskjackpoz
Initialize padding bytes in MmapTileHeader struct to avoid saving uninitialized data to disk, causing issues when binary-comparing *.mmtile files.
2016-08-08Common/Common: Reduce differences between 3.3.5 and 6.x branchesjackpoz
Code functionality shouldn't have been modified.
2016-08-08Core/Common: Converted the common library to a shared library.Naios
* There is still the possibility to static link against common. (cherry picked from commit 501fd9b50232ca3ae3623877c3e521c9c1f894be) # Conflicts: # src/common/Collision/Management/MMapManager.h # src/common/Collision/VMapTools.h # src/common/Common.cpp # src/common/Common.h # src/common/Cryptography/Authentication/PacketCrypt.h # src/common/Cryptography/Authentication/WorldPacketCrypt.h # src/common/Cryptography/HmacHash.cpp # src/common/Cryptography/HmacHash.h # src/common/Cryptography/SHA256.h # src/common/GitRevision.h # src/common/Utilities/Random.h # src/common/Utilities/Util.h