Commit Graph
100 Commits
Author SHA1 Message Date
Shauren 0d84daa39c Build: Delete FindBoost.cmake and rely on the one that ships with cmake instead
# Conflicts:
#	cmake/macros/FindBoost.cmake
2020-04-05 21:06:09 +02:00
Shauren a853bacd1d Core/Creatures: Fixed crash when guards get killed by periodic auras whose caster is offline or despawned 2020-04-04 18:51:57 +02:00
Shauren 9ad9398f04 Core/PacketIO: Fixed SMSG_UPDATE_OBJECT packets going missing for new items
Closes #16906
2020-03-19 20:45:57 +01:00
Shauren 7797c6a0ad Core/Guilds: Implement guild bank gold limit matching client 2020-03-18 13:42:41 +01:00
Shauren bbdf60701b Core/Random: Refactor random number generation to use std::uniform_*_distribution to restrict result range instead of doing that ourselves
* Seed SFMTRand with more values for its state

# Conflicts:
#	src/common/Utilities/Random.cpp
2019-11-10 18:58:25 +01:00
Shauren 43a18dae7f Core/PacketIO: Restrict CMSG_STANDSTATECHANGE to only allow the same stand states that client can send by itself 2019-11-05 16:05:54 +01:00
Shauren ff018e4d75 Core/PacketIO: Restrict CMSG_EMOTE to only allow emotes that are hardcoded in client 2019-11-05 16:04:52 +01:00
Shauren d297600dc7 Core/Battle.net: Fixed another client crash happening when logging out to character list 2019-10-08 15:33:36 +02:00
Shauren 7b15c4029b Core/Battle.net: Fixed client crashes happening when reconnecting too soon after being kicked 2019-10-08 15:32:23 +02:00
Shauren e596504d93 * Auth/Battle.net Added missing build check to JoinRequest handler
* Core/Commands: Battle.net account command changesisting accounts

(6584995c11a02478671656ea6955db7a645b57ce)
(0c27ffaa49c7e3e6880051ac74581cae51d83351)
2019-10-08 15:26:06 +02:00
Shauren 3b3c6ca09d Tools: Added universal TrinityCore banner with git version info to all tools 2019-09-29 01:44:59 +02:00
Shauren 7febdf4094 Tools/Patcher: Optimized loading binary file by patcher 2019-09-29 01:38:32 +02:00
Shauren 40c865612a Tools/Patcher
* Client patcher no longer has to be ran from administrator level command line to successfully create bnet module
* Set patched bnet module as readonly to prevent wow from deleting it
2019-09-29 01:24:21 +02:00
Shauren d1017e1c62 Tools/Patcher: Removed "Connection" patch and added rsa modulus patch 2019-09-29 01:19:26 +02:00
Shauren 6f0ff86f5f Tools/Patcher: Added pattern & patch for portal to all build configurations 2019-09-29 01:05:20 +02:00
Shauren 7dacfff2ef Core/Build: Fix build with boost 1.71 2019-09-14 14:31:18 +02:00
Shauren 66bdfee4ee Core/Dep: Boost 1.70 compatibility
(cherry picked from commit bcda8dd7421cfa1950a3e47081f2f28d032d38ac)
2019-09-12 01:11:21 +02:00
Shauren c4d5642f72 Core/Dep: Boost 1.70 compatibility
(cherry picked from commit bcda8dd7421cfa1950a3e47081f2f28d032d38ac)
2019-09-12 01:08:29 +02:00
Shauren 0b8ab68eb3 Core/Map: Kill zoneId from RespawnInfo, all it did was significantly slow down startup to make one gm command faster 2019-08-18 11:51:09 +02:00
Shauren 96faf78409 Core/Movement: Use correct root check 2019-05-12 01:26:20 +02:00
Shauren e610b8440c Core/Movement: Prevent rooted units from falling
* Fixes a client freeze

Closes #23042
2019-05-12 01:26:00 +02:00
Shauren 28da58ea8b Core/Misc: Fixed -Wcast-function-type warning 2019-04-29 08:45:26 +02:00
Shauren 2fb644344d Core/Dep: Boost 1.70 compatibility
(cherry picked from commit bcda8dd7421cfa1950a3e47081f2f28d032d38ac)

# Conflicts:
#	src/server/authserver/Main.cpp
#	src/server/shared/Realm/RealmList.cpp
#	src/server/shared/Realm/RealmList.h
2019-04-14 12:18:33 +02:00
Shauren 56d236c9f9 Build fix2 2018-09-09 14:55:26 +02:00
Shauren cf0614dd2d Build fix 2018-09-09 14:55:15 +02:00
Shauren 4bfd1314ba Core/CrashHandler: Include assertion messages in crash reports 2018-08-30 00:03:18 +02:00
Shauren 5a7a83f520 Core/Commands: Fixed .damage command to work with spell schools caused by bad strtok usage
Closes #22280
2018-08-20 04:45:08 +02:00
Shauren 9c87764612 Core/Players: Fixed saving quest item progress 2018-07-13 17:14:14 +02:00
Shauren 3ecf82f1a0 Common: Replace ip2nation by ip2location. (#21957)
Replace ip2nation by ip2location.

Download: https://lite.ip2location.com/database/ip-country

Core/Misc: Improved ip2location code and set it to disabled by default
2018-06-23 21:45:51 +02:00
Shauren fa54e9ab0a Core/DBLayer: Escape even more keywords 2018-05-22 02:11:56 +02:00
Shauren 7489781860 Core/DBLayer: Escape new mysql 8 keywords 2018-05-20 20:02:31 +02:00
Shauren 9fd67b7044 Core/SAI: Fixed crashes when SAI targets pets that use sai if not tamed
Closes #21870
2018-04-25 00:22:02 +02:00
Shauren 3c066b1ed3 Core/Players: Greatly simplifiy fdb2b90685ebc3852740c424170101a196c29ebb 2018-04-13 17:32:07 +02:00
Shauren 1c83dcac98 Core/Players: Prevent creating characters with duplicate name by reserving name early in the process
Closes #21656
Closes #21809
2018-04-13 17:31:54 +02:00
Shauren 723c5cb856 Core/Chat: Fixed chat link exploit
Closes #21790
2018-04-07 03:34:32 +02:00
Shauren e02dbdb176 Core/Misc: Build fix for some compilers
Closes #21705
2018-03-27 20:51:07 +02:00
Shauren 97bd2e2f2f Core/Movement: Fixed transport teleports on the same map (and teleporting on transports too) 2018-03-19 00:30:38 +01:00
Shauren b7e29526a2 Core/CrashHandler: Fixed generating crash logs from CRT debug assertions
(cherry picked from commit abdf6479ddbf42c8b53cb943c54203211ceb0691)
2018-03-10 23:49:43 +01:00
Shauren dde0239200 Buildsystem: Fixed finding openssl 1.1 libs 2018-03-06 21:06:58 +01:00
Shauren 523a2dccdc Revert "Collision/MMap: Fix a memleak reported by valgrind"
This reverts commit 32e8b6506fc064fdba134d692dfe99298e43f055.
2018-03-06 00:02:33 +01:00
Shauren bf2d223cc3 Build fix 2018-02-10 11:51:45 +01:00
Shauren c385edb12d Core/Scripts: Fixed ENSURE_AI assertion failures when used in Reset()/InitializeAI() hooks with hotswap
Updates #20727
2018-02-10 11:51:34 +01:00
Shauren 92003135da Core/Networking: Activate single threaded optimization for io_service running in NetworkThread
(cherry picked from commit 9711dd3f706a30d23f57b259765837b71292d09e)
2018-01-06 13:23:45 +01:00
Shauren be694109d5 Travis/CI: Always start mysql service
(cherry picked from commit 38baf3800b0506f3ee28238e3ee87d43be63ca76)
2018-01-01 16:14:19 +01:00
Shauren 83bee6000b Build: Fixed warning about disabling warnings 2017-12-17 14:17:51 +01:00
Shauren f7fd109066 Buildsystem: Fixed windows pch build with ninja
(cherry picked from commit a6e46c1c2ef491cd4cce39be47445e9da194e84e)
2017-12-14 09:49:56 +01:00
Shauren b8ca6a9045 Core/Spells: Fixed accessing freed memory after reloading spell_area 2017-12-03 17:12:31 +01:00
Shauren 088d678a9f Core/Items: Fixed sending unlocked items by mail
Closes #20976
2017-11-27 00:57:25 +01:00
Shauren d979329be3 Scripts/Events: Fixed memory leak in npc_bountiful_table added in 75df296bb6f8d30a65f669dab6af3d1b2d6046f7 2017-11-25 22:44:00 +01:00
Shauren 41fa77a301 Dep/jemalloc: Fixed valgrind intergration 2017-11-19 20:18:19 +01:00
Shauren 2ce760af40 Scripts/Sethekk Halls: Added missing empty check before Trinity::Containers::SelectRandomContainerElement
Ref #20317
2017-11-16 20:41:44 +01:00
Shauren 64d1facd40 Core/Taxi: Fixed applying reputation discount to first taxi segment
Closes #20713

(cherry picked from commit d7e463dd9f7c61e1056148cf8956bcb0f8fd1fed)
2017-10-26 03:08:14 +02:00
Shauren 0792f890a3 Core/Misc: Revert back to using boost::regex, std::wregex doesn't work for name validation
Closes #20094
2017-08-03 00:19:24 +02:00
Shauren 3f5f58ec6a Build fix 2017-07-29 15:23:08 +02:00
Shauren f699891b37 Core/Misc: Util changes
* Move IteratorPair to its own header
* Add AsUnderlyingType function to cast enum value to its underlying type (avoids repeating std::underlying_type everywhere)
2017-07-29 14:41:26 +02:00
Shauren e830489294 Core/Auth: Fixed client getting stuck on login or realm change 2017-07-21 21:22:56 +02:00
Shauren fc7b5201a4 Core/Auth: Prevent queueing more than one realmlist query at the same time 2017-07-12 19:25:33 +02:00
Shauren 2a68b6a0db Buildsystem: Exclude ScriptPCH from all targets when building dynamic scripts (except MSVC)
(cherry picked from commit 550c57a0df954ade238f6cd0318cfc6890dd26f0)
2017-06-25 14:17:28 +02:00
Shauren 1808fdd7b2 Buildsystem: Minor PCH building changes
* *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-25 14:16:31 +02:00
Shauren 3bf8426942 Core/Maps: Fixed initializing instance free ids when compiled with WITH_COREDEBUG
Closes #19931
2017-06-25 14:16:04 +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
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
Shauren 900a2da03d Core/Instances: Fixed and optimized instance id reuse 2017-06-06 08:00:10 +02:00
Shauren 0a61a3ffb5 Core/Groups: Fixed calculating canReset attribute
Broken in d6df19cd99.
2017-06-02 00:23:00 +02:00
Shauren 080fd33e13 Revert "Core/Groups: fix wrong query for loading group instance data. canReset attribute was calculated in the wrong way"
This reverts commit 0c1dd398bd.

Closes #19745
2017-06-02 00:22:46 +02: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
Shauren aa864d57f7 Core/Hotswap: Replace #ifdef conditions with comparisons of values defined in CompilerDefs.h
(cherry picked from commit 43510a258c83215efcf5e70a253523e8a4199502)
2017-05-26 14:24:42 +02:00
Shauren bba87cfeee Core/Auras: Allow passive auras from items to stack
(cherry picked from commit 8453d7dae25823dd5d2ecf2b718a469c0553214c)
2017-05-04 04:27:59 +01:00
Shauren 1f96c1f268 Merge 1e1fcd6847619629f4b6642faaccb81c4cf3755e 2017-05-03 17:26:32 +01:00
Shauren a9d5fab271 Core/Spells: Calculate hitMask and store it in DamageInfo/HealInfo structures 2017-05-03 17:14:00 +01:00
Shauren fd19577d7d Core/Spells: Name a spell attribute
(cherry picked from commit e88a5e4d6d34a7d319cf8a18d3522017bc9101c0)
2017-04-16 11:46:00 +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
Shauren 3f048ca5fa Core/Auth: Per SRP6a protocol, terminate connection of A % N == 0. This resolves another authentication bypass issue
(cherry picked from commit cmangos/mangos-wotlk@ea3e08a812)
2017-03-15 23:37:24 +01:00
Shauren bc2221cd19 Add missing sql to previous commit 2017-02-19 09:12:24 +01:00
Shauren c7d5c24bfe fix typo 2017-02-10 05:26:49 +01:00
Shauren 9d4a1ddc10 Core/Maps: Adjusted WorldObject::GetGridActivationRange() to never be less than map visibility distance for active objects to ensure equal ranges for activation/deactivation of grids
Updates #19072
2017-02-10 05:26:38 +01:00
Shauren fae31bf07d Core/Auras: Prevent infinite stacking of passive auras with the same id from the same caster on the same target
Closes #18475

(cherry picked from commit 88676120586df7581677eca8d5e2724579c69482)
2017-02-10 05:25:16 +01:00
Shauren 043b4de635 Fixed clang segmentation fault in nopch mode
(cherry picked from commit 787adc24b2d1a7a3c03ecfed57de27631359ef65)
2017-02-05 01:54:34 +01:00
Shauren b80a8dd9fa Core/DBLayer: Refine new query callback for chaining
(cherry picked from commit 73e61fa652d1233bfff1db91fa2bca8c317c8caf)
2017-02-01 01:21:10 +01:00
Shauren 7f91c34200 Core/DBLayer: Added new async query callback api
(cherry picked from commit fcabeed7544285f3244465ccfc5337c59e63c6b0)
2017-02-01 01:20:52 +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
Shauren 5ac6ed25d1 Core/Player: Removed unneeded distance check from Player::ActivateTaxiPathTo, it is already checked by HandleActivateTaxi* methods (and taxis started serverside should not have such requirements)
Closes #15398
2017-01-21 14:36:46 +01:00
Shauren 9401fd3621 Tools/mmaps_generator: Mak percentage progress slightly more accurate
#18832
2017-01-15 06:23:30 +01:00
Shauren 5ddf50bdee Core/Auras: Fixed removing auras triggered by aurastates
Closes #17868

(cherry picked from commit f94e6cee38241e10daed711247a18b8706cb8924)
2016-11-15 05:43:30 +01:00
Shauren a618a6b121 Core/Transports: Fixed crash added in b88cecb656c62cd3bcc3ae2a171b173eb64a28c9 2016-11-02 03:47:20 +01:00
Shauren bf19fe3e26 Core/Transports: Added extra transport position update just when it stops moving
Closes #17952
2016-11-02 03:46:52 +01:00
Shauren 93fd8f2511 Core/GameObjects: Fixed Frozen Trap target selection
Closes #14238
Closes #17517
2016-11-02 03:23:23 +01:00
Shauren a3e5afc027 Core/Spells: Calculate hitMask and store it in DamageInfo/HealInfo structures 2016-10-05 08:01:38 +02:00
Shauren f5a980be9b Core/Units: Clear UNIT_NPC_EMOTESTATE on death (blizzlike)
Closes #15263
Closes #18027
2016-10-04 18:07:59 +02:00
Shauren b1f20ced7a Core/Creatures: Exclude despawned creatures from being found by "nearest entry" searchers
Updates #11418
Closes #17706
2016-08-22 21:11:14 +02:00
Shauren a3d4957150 Typo fix 2016-08-22 20:54:59 +02:00
Shauren 89a630b1e4 Dynamic linking build fix 2016-08-22 20:53:56 +02:00
Shauren a778c8033f Core/Spells: Fixed possible null pointer dereference
Coverity CID 1357406

(cherry picked from commit cc07a491f64fa958c8a27079bd2def84c577f816)
2016-08-20 15:54:14 +02:00
Shauren f1c84639b5 Core/Misc: Warning fixes (/W4)
(cherry picked from commit c9ba5ce591a8b4ef5dc0e73d0ce107b6acf5e969)
2016-08-10 06:41:59 +02:00
Shauren ea918e1b69 Core/Utils: Added additional argument to Tokenizer class to make it behave like strtok - not returning empty tokens in case of multiple consecutive separators in input string
(cherry picked from commit dd1533b315bda37e1d43ebe0fb8bde87381c6e66)
2016-08-07 21:28:29 +02:00
Shauren 3d991107e2 Core/Commands: Cooldown command should fall back to targeting self in case of no valid selection 2016-07-20 19:34:45 +02:00
Shauren 792f48b554 Core/Commands: Allow .cooldown command to work on player pets 2016-07-20 19:34:04 +02:00
Shauren 286e796a55 Core/Quests: Failing/abandoning a quest should not unconditionally remove required items, non-quest specific items such as crafting reagents should remain in inventory 2016-07-20 19:31:30 +02:00
Shauren 8a5e7eba70 Core/Units: Fixed autoattack range
Closes #17539
2016-07-20 19:12:44 +02:00