Commit Graph
131 Commits
Author SHA1 Message Date
Shauren 39356deeb9 Core/Vmaps: Fixed getting map height near large gameobjects like LK platform
Updates #19865
2017-06-09 13:29:41 +02:00
Aokromes f8d9d954d1 Get zone/area IDs from vmap data in the liquid update
* 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.
2017-06-09 13:20:37 +02:00
Aokromes ac3dbcb880 Core/Utilities: Rename RandomResizeList->RandomResize as it is no longer restricted to a list 2017-06-07 09:53:04 +02:00
Shauren 38d1fc9ab3 Core/Utils: Changed all Trinity::Containers utilities to work on all 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-06-07 09:14:37 +02:00
Golrag 3afbcbc0e4 Core/VMaps: Fix LoS in Strand of the Ancients (#19847)
Core/Collision: Fixed MOPY chunk flags enum.

Also avoid loading destructible WMOs into vmaps.

VMap re-extraction is required.

Closes #15798.
2017-06-06 08:44:49 +02:00
Ryan 1442984686 Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4 2017-05-28 19:10:00 +01:00
Shauren d8b9d2a9da Core/Misc: Prefix all preprocessor defines from CompilerDefs with TRINITY_ to avoid conflicts (PLATFORM_WINDOWS is used/defined by CascLib)
(cherry picked from commit b8db320bf14e327bcd12279871b914d8635ef122)
2017-05-26 14:49:55 +02:00
Aokromes 06168fb412 Implement real time statistic visualization 2017-05-26 14:47:59 +02:00
Ryan 20726edec2 Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4 2017-05-19 23:49:46 +01:00
Aokromes fc20b6934b build fix 2017-05-06 02:38:01 +02:00
Aokromes 0fbcdca05e Core/Collision: Replaced phasemask with proper phases in GameObject c…
…ollision calculation
2017-05-06 01:55:17 +02:00
ariel- 18a145e2c6 Core/Utils: build fix 2017-05-04 01:44:12 +01:00
ariel- b14b00da5c Core/ScriptMgr: use vector instead of list to contain Spell and Aura scripts and hooks 2017-05-04 01:41:35 +01:00
jackpoz 1664c1bd2e Core/Misc: Fix static analysis issues 2017-04-26 05:09:44 +02:00
Aokromes 6871bb1729 Build: Added 1.64 Boost version to FindBoost 2017-04-20 22:25:46 +02:00
Shauren ed95f9249b Core/Random: Remove no longer needed hack for VS 2013
(cherry picked from commit 59fe9087447dc58c3f41fb6f647bc2b50a95b9b5)
2017-04-14 13:45:21 +02:00
jackpoz 53939cd14e Core/Misc: Fix static analysis issues 2017-04-09 18:17:51 +02:00
jackpoz d64db19d82 Core/Crash: Refactor and fixes
Code cleanup.
Fix buffer overflow crash.
Fix type being truncated to 199 characters.
2017-03-20 16:53:22 +01:00
jackpoz e36790b312 Core/Misc: Fix static analysis issues 2017-03-03 01:26:40 +01:00
Aokromes 00622f0ad9 Core/Misc: Fix static analysis issues 2017-02-17 09:30:02 +01:00
Aokromes bc19916d79 Sync with 3.3.5a 2017-02-10 06:45:33 +01:00
Shauren dc2deb8602 Core/Vmaps: Changed error message when loading outdated vmaps
Closes #18431
Closes #18857
2017-01-23 00:17:17 +01:00
Shauren bbcd694155 Fix static analysis issues
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-23 00:15:36 +01:00
ariel- 4edbb2d633 Core/Collision: fix no-PCH build 2017-01-21 18:46:40 +01:00
HelloKitty 927a73a7ef Core/Vmaps: Stop M2s from occluding for spellcast LoS
Closes #18528
2017-01-21 14:45:30 +01:00
Aokromes 719a317a67 Update copyright note for 2017 2017-01-02 07:26:38 +01:00
DDuarte 0578f5612a Dep: Update fmt (cppformat) to 3.0.1 https://github.com/fmtlib/fmt/commit/7fa8f8fa48b0903deab5bb42e6760477173ac485 2016-12-30 01:19:58 +01:00
zori 15a1e26d99 Correct Nav type for WMO objects (#18364)
* Tools/MMaps: Correct liquid type for WMO objects

* MMaps: Update version to 6
2016-12-06 11:10:13 +01:00
ariel- bea6bbb321 Core/Maps: bumping Vmap version after 2402f476424531a175d9a016f433321f00608501
Re-extracting vmaps is required
2016-12-06 11:09:39 +01:00
Aokromes f4a3d112a2 Fix typo in VMap BIH generation (#18297)
Fix typo in VMap BIH generation
By zorix
2016-12-06 11:03:08 +01:00
Aokromes c0ba6c2dfe Core/Auras: Rewritten conditionally applying SPELL_AURA_MOD_WEAPON_CR…
…IT_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
2016-11-27 03:09:29 +01:00
treeston 1fb05a1797 Common/Utilities: More std::chrono overloads for EventMap. Specifying 2 std::chrono types now gives you a random (to milliseconds) time in that interval (inclusive) for (Re)ScheduleEvent. 2016-09-14 14:34:10 +02:00
Naios f0e47a27f9 Core/Define: Remove the conditional macro for constexpr.
* Not needed anymore since the requirements were raised to MSVC 2015.
2016-08-29 22:08:31 +02:00
Naios 65e2355c8f Core/Common: Correct the linking of localeNames 2016-08-29 22:08:15 +02:00
jackpoz e6c7894be1 Tools/MMapGenerator: Avoid saving uninitialized padding bytes to disk
Initialize padding bytes in MmapTileHeader struct to avoid saving uninitialized data to disk, causing issues when binary-comparing *.mmtile files.
2016-08-18 09:35:04 +02:00
roc13x a54adfd894 Core/Build: Fixed dynamic mode build
Core can now be built in dynamic mode, enabling the hotswap system to be
used.

Hotswap works fine on Windows. Didnt work for me on Debian, the rebuild
and reload process happens but the old version of the module remains for
some reason. Cant figure it out right now
2016-08-13 17:26:30 +01:00
jackpoz 1d6adef396 Common/Common: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-12 11:58:55 +02:00
Aokromes e201c034c7 Core/Common: Converted the common library to a shared library.
* There is still the possibility to static link against common.
2016-08-12 11:58:18 +02:00
Naios a354feb48b Core/EventProcessor: Check whether an event was aborted before aborting it.
* Fixes an assertion introduced in commit 1ad73212dca0cf.
* Use itr = std::unordered_map<...>::erase for updating the iterator.
2016-08-10 09:05:17 +02:00
Naios 80d77dfb46 Core/EventProcessor: Wait for non deletable events to get deletable.
* Immediate deletion caused issues with the SpellEvent,
  so we delete it at one of the next update ticks now.
* Only affects the unforced cancellation of events.
* Ref #16675
2016-08-10 09:04:55 +02:00
Naios d4e76b75dc Core/Common: Add the linkage type to the version string
* Add platform strings for intel and apple
* Remove usage of underscore uppercase identifiers because
  those are reserved for the compiler.
* Requested by Aokromes

(cherry picked from commit afa0bac669ac787e6bd35273c967a58b3e4e2196)
2016-08-10 09:03:50 +02:00
Aokromes 9264bfaf86 Core/Game: Remove some unnecessary export macros 2016-08-10 09:03:10 +02:00
Naios a682a01270 Core/Common: Move the query callback header to the database project
* Also renames the header to it's correct name QueryCallback
2016-08-10 08:59:35 +02:00
Naios 2cd46f6f05 Core/Utilities: Inherit env vars when starting external processes 2016-08-10 08:58:38 +02:00
Naios 176f3f1a87 Core/Common: Fix a std::string -> char* -> std::string conversion
* Thanks jackpoz for noticing
2016-08-10 08:58:09 +02:00
Naios 7a827fe435 Core/Cryptography: Move the SHA1 calculate helper to the SHA1 header 2016-08-10 08:56:37 +02:00
Naios a75d2b01fb Core/Common: Capsule boost process into helper functions
* For easier usage, the processes output it routed
  correctly to the TC logger line by line now.
* Add support for asynchronous process execution
  and process termination.
2016-08-10 08:51:52 +02:00
Aokromes 231d680826 typo fix 2016-08-10 08:21:10 +02:00
Aokromes 384a5216fd Core/Common: Converted the common library to a shared library.
* There is still the possibility to static link against common.
2016-08-10 08:19:25 +02:00
Aokromes 4905073101 Buildsystem: Initial changes to support building with vs clang toolset 2016-08-10 04:43:29 +02:00