Commit Graph

65 Commits

Author SHA1 Message Date
Ovahlord
fe4f86b1bc Core/VMaps: fixed build, vmaps extraction and some copy paste fails 2018-03-09 22:21:28 +01:00
Ovahlord
4bbdce57e2 Core/VMaps: Implement loading phased tiles 2018-03-09 18:05:47 +01:00
Ovahlord
e44bb5f387 Core/Entities: Phase Rework (main commit) 2018-03-08 22:58:50 +01:00
Aokromes
c33ff02c34 Core/MMaps: Remove phased tile support
* Extremely slow
* Needs to be implemented partially in tools
* Conflicts with upcoming phasing rewrite
2018-03-06 00:22:05 +01:00
Shauren
523a2dccdc Revert "Collision/MMap: Fix a memleak reported by valgrind"
This reverts commit 32e8b6506f.
2018-03-06 00:02:33 +01:00
Aokromes
cbf7a27478 Revert "Core/MMaps: Fix crash introduced in commit 32e8b65 (#17447)"
This reverts commit f293994.
2018-03-06 00:01:52 +01:00
jackpoz
5a61b3ce5e Core/Misc: Fix static analysis issues 2018-01-01 15:50:42 +01:00
Aokromes
4bd0525edd Update copyright note for 2018 2018-01-01 01:06:19 +01:00
Aokromes
a18293833e Misc: More cleanup 2017-11-25 03:02:18 +01:00
Aokromes
b93430ee08 Misc: More cleanup 2017-11-25 02:25:18 +01:00
Aokromes
91affef0c6 Misc: Kill trailing white spaces 2017-11-25 01:36:21 +01:00
Aokromes
13a3531698 Core/VMaps: Fix no collision triangles
vmaps extraction required
2017-11-22 17:27:04 +01:00
jackpoz
c62b81dd8b Dep/Recast: Update recastnavigation to recastnavigation/recastnavigation@2c85309 2017-11-19 18:03:17 +01:00
Aokromes
5b2b8ae9d1 Core/Misc: make clang 6.0 happy 2017-10-28 17:12:58 +02:00
Shauren
3f5f58ec6a Build fix 2017-07-29 15:23:08 +02:00
jackpoz
3410edfdae Core/Misc: Fix static analysis issues 2017-07-17 18:51:56 +02:00
Aokromes
c6a1ea7c32 Tools: Automatically create directories for tools 2017-07-17 10:26:41 +02:00
Aokromes
8b6261c809 Core/Misc: Fix static analysis issues 2017-07-16 19:05:26 +02:00
ariel-
987f0bda82 Core/Vmaps: build fix mk II 2017-06-09 13:30:07 +02:00
ariel-
3914ace3ba Core/Vmaps: build fix 2017-06-09 13:30:01 +02:00
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
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
Aokromes
06168fb412 Implement real time statistic visualization 2017-05-26 14:47:59 +02: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
jackpoz
1664c1bd2e Core/Misc: Fix static analysis issues 2017-04-26 05:09:44 +02:00
jackpoz
53939cd14e Core/Misc: Fix static analysis issues 2017-04-09 18:17:51 +02:00
Aokromes
00622f0ad9 Core/Misc: Fix static analysis issues 2017-02-17 09:30:02 +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 6767bbc95f)

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
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 2402f47642
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
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
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
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
jackpoz
3c66feafcc Common/Maps: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-03 22:39:59 +02:00
jackpoz
8cd5cefaf6 Common/Maps: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-03 19:48:38 +02:00
jackpoz
d9f485273c Core/VMaps: Fix some vmap height edge cases
Fix Map::GetWaterOrGroundLevel() checking dynamic object only in phase 1 instead of current Unit phase.
Improve DynamicMapTree::getHeight() dynamic object check by casting the ray at +0.5f from the passed Z coordinate, this value will be tuned to improve even more the results.
2016-07-20 15:45:05 +02:00
Aokromes
9c1b965136 Core/Misc: MSVC warning fixes 2016-07-19 12:40:58 +02:00
ariel-
1a6f3472da Core/Misc: remove unused function prototype 2016-07-17 14:11:33 +02:00
Aokromes
5ecf2e318c Update MMapManager.cpp 2016-06-24 17:16:14 +00:00
Aokromes
1cc604cdee by et65 closes https://github.com/TrinityCore/TrinityCore/issues/16910 2016-06-23 10:24:55 +02:00
Aokromes
0ac5f4a440 Sync with 3.3.5a core 2016-05-03 12:40:27 +02:00
Carbenium
d427c853e7 Collision/MMap: Fix a memleak reported by valgrind
Tiles which are owned by the mesh should have the DT_TILE_FREE_DATA flag to ensure
deallocation on removal from the mesh.

Log:
==23516== 6,181,976 bytes in 6 blocks are definitely lost in loss record 15 of 15
==23516==    at 0x4C298A0: operator new[](unsigned long) (vg_replace_malloc.c:389)
==23516==    by 0x2052660: dtCustomAlloc(int, dtAllocHint) (Memory.h:11)
==23516==    by 0x29D7FDA: dtAlloc(int, dtAllocHint) (DetourAlloc.cpp:43)
==23516==    by 0x230AA70: MMAP::MMapManager::loadMap(std::string const&, unsigned int, int, int) (MMapManager.cpp:166)
==23516==    by 0x1DD585B: Map::LoadMMap(int, int) (Map.cpp:125)
==23516==    by 0x1DD7266: Map::LoadMapAndVMap(int, int) (Map.cpp:200)
==23516==    by 0x1DD93C6: Map::EnsureGridCreated_i(CoordPair<64u> const&) (Map.cpp:453)
==23516==    by 0x1DD9129: Map::EnsureGridCreated(CoordPair<64u> const&) (Map.cpp:429)
==23516==    by 0x1DED100: Map::GetGrid(float, float) (Map.cpp:2200)
==23516==    by 0x1DE0F4C: Map::GetAreaFlag(float, float, float, bool*) const (Map.cpp:2349)
==23516==    by 0x198521B: Map::GetZoneId(float, float, float) const (Map.h:353)
==23516==    by 0x197CFF0: WorldObject::GetZoneId() const (Object.cpp:1277)

Phase tiles aren't managed by detour so they shouldn't be free'd automatically on removal.
See MMapManager::UnloadPhaseTile

(cherry picked from commit 32e8b6506f)
2016-01-30 20:48:15 +01:00
Zedron
c4e2f0e5ad Core/MMaps: Fixed mmap loading
Bug introduced in 1d2aafd

(cherry picked from commit 32a82dc956)
2016-01-20 08:21:23 -03:00