jackpoz
04cc51a6cf
Core/Misc: Fix some static analysis issues
...
Fix some static analysis issues, mostly false positive about fields not initialized in the constructor. It's good practice anyway to always initialize them.
2013-12-01 16:19:30 +01:00
Spp
94e2b9332a
Core/Logging: Remove LOG_FILTER_XXX defines with it's value (remember logger names are case-sensitive)
2013-11-08 10:50:51 +01:00
leguybrush
0a308144a8
Core/Code: Unify [more] codestyle for brackets: )\n{\n} to ) { }.
2013-10-28 14:36:07 -04:00
Ascathor
2607738990
Core/Code: Unify codestyle for brackets: {} to { }.
...
Also added missing copyright to some files.
2013-10-27 23:46:02 +01:00
jackpoz
a5134971cb
Tools/VMAP: Fix not null terminated string
...
Fix not null terminated string in vmap assembler tool, fix coverity issue id 1010351 .
2013-09-15 13:38:54 +02:00
jackpoz
be7d82ba8d
Core/Maps: Fix Spline triggered assert
...
Fix an assert triggered by float to int32 cast overflowing to -1, now it replaces -1 with max int32 value.
Fix another assert triggered by Vector3 magnitude float overflow to max/infinity in StaticMapTree::isInLineOfSight(), in this case return false.
Both asserts can be reproduced by casting Mind Control to a NPC, tele to z: 1.0e+38 using client hack tools, move to allow the server to register the new position and stop Mind Control.
Closes #8970
Closes #10578
Closes #10355
Closes #10673
2013-08-30 21:27:04 +01:00
Nay
e5dc70118a
Server/Collision: Fix build on clang
2013-08-27 19:34:03 +01:00
raczman
ba22baebbd
Core/Auth: Implement time-based token for user login as described in RFC 6238.
...
New column in account table is a base32 of token key bytes,
coincidentally it is the same format Google's Authenticator Android app uses.
If you want that to work, set system time on server correctly and use ntpd.
Closes #10527
Signed-off-by: Nay <dnpd.dd@gmail.com >
2013-08-25 14:02:40 +01:00
Nay
12973de799
Core&Tools: Fix multiple issues found by a static code coverage tool
2013-08-24 22:57:22 +01:00
Vincent-Michael
da1e466bd5
Core/Misc: Implemented GetObjectScale function
2013-08-17 23:47:43 +02:00
kaelima
aa645683b8
Core/MMAPS: Update recastnavigation!
...
* Complete changelog can be found at http://code.google.com/p/recastnavigation/
* Adjusted a few config values
Important:
* New mmaps extraction is required
* Folder size will be increased
2013-06-17 05:11:56 +02:00
Shauren
9ec22fffa0
Core/Objects: Object scale will now also affect bounding radius and combat reach fields
2013-06-11 17:28:16 +02:00
Spp
9664c0ab5c
Core/Misc: Another batch of fixes for issues found by static analysis
2013-05-30 13:18:29 +02:00
Spp
782ea4309a
Core/Misc: Fix invalid pointer use after being deleted
2013-05-30 13:18:29 +02:00
Spp
7ccbbdddd8
Core/Collision: Fix memory leak
2013-05-30 13:18:29 +02:00
Spp
00c1168897
Core/Misc: Remove trailing whitespace, compile warnings and minor cosmetic changes
2013-05-21 08:37:28 +02:00
Shauren
8e339e8558
Reverted part of 60a88a08f5
...
All 8 bytes must be read from file to match output from vmap4extractor
2013-05-18 21:33:03 +02:00
Shauren
7058d8bb4c
Core/Collision: Corrected logic for closing source file in WorldModel_Raw::Read, fixes resource leak if method succeeds and prevents double free if it fails.
...
Closes #9823
2013-05-18 21:25:26 +02:00
Subv
60a88a08f5
* Some more static analysis issues fixed.
2013-05-17 22:29:58 -05:00
Shauren
7d46703413
Core/Misc: Another batch of fixes for issues found by static analysis
2013-05-17 21:30:02 +02:00
Spp
d1677b2db0
Core/Logging: Performance-related tweaks to logging system
...
All sLog->out* functions (except outCommand atm) are replaced with TC_LOG_* macros.
Memleak fix
2013-05-13 15:07:36 +02:00
Spp
3c6c8c1117
Core/Misc: Remove the use of logging system from WPFatal (Fixes tools compile)
...
Closes #9501
2013-03-26 09:44:01 +01:00
WyldePointer
47f7687bab
Core: Remove unnecessary commas
...
Last element of enumerator does not need comma after it's value.
Closes #9367
2013-03-09 15:20:57 +00:00
Nay
41c7f35a31
Merge pull request #9385 from thomas007788/Doxygen
...
First step of comment style refactoring to doxygen-style.
2013-03-08 16:25:05 -08:00
Nay
c7463c5f6c
Buildsystem: Add support for compiling with MinGW on Windows
...
Tested with:
- Windows 8 x64
- MySQL 5.5.30 win32
- OpenSSL 1.0.1c (32 bits)
- No PCH
- MinGW with GCC 4.7.0
TODO:
- Fix compile/link with PCH enabled
- Fix compile with WheatyExceptonionReport enabled (ignored for now)
- Fix compile of .rc files (ignored for now)
- Test with more platforms
2013-03-09 00:12:50 +00:00
Nefarion
49fd11ab5a
First step of comment style refactoring to doxygen-style.
2013-03-08 21:55:37 +01:00
click
58ac8207ec
Core: Add support for compiling core in a cygwin-environment
...
- rename/readd/add G3D-patches
- give a history on the changes (some G3D-changes didn't even HAVE a patch - boo!)
DON'T MESS ABOUT WITH CHANGING DEP/* LIBRARIES AND NOT LEAVING A DIFF IN THE SOURCETRE, MKAY!?
2013-02-27 22:31:25 +01:00
Shauren
b346459ca8
Core: Warning fixes
2013-02-03 14:11:59 +01:00
Spp
c4e4cb1b5c
Core/Misc: Remove using directive from header files (It will eventually lead to name collisions)
2013-01-30 09:06:19 +01:00
Shauren
5d75ac29b4
Tools: Remove a bit of spam when mmaps_generator loads vmaps
2013-01-23 23:25:42 +01:00
Shauren
69baba23cc
Tools: Build fix, for real this time
2013-01-22 19:30:52 +01:00
Shauren
259a29c093
Tools/Extractors: Mmap extractors no longer depend on shared and MySQL libraries
2013-01-22 18:40:32 +01:00
Nay
ebded74eee
Merge remote-tracking branch 'origin/master' into mmaps
2013-01-21 20:42:02 +00:00
jackpoz
dd7391660b
Core/Collision: Fix BIH::intersectRay crash
...
Assure that BIHWrap::remove(const T& obj) actually removes every reference of obj from BIHWrap.
Also add sanity checks to MDLCallback () functions to avoid array overruns.
Closes #5218
Signed-off-by: Nay <dnpd.dd@gmail.com >
2013-01-21 01:56:42 +00:00
Vincent_Michael
65cd79dc77
Core/Misc: Update headers to 2013
2013-01-14 17:42:06 +01:00
Nay
e6a07076c3
Merge remote-tracking branch 'origin/master' into mmaps
...
Conflicts:
src/server/game/Entities/Unit/Unit.cpp
src/server/game/Movement/MotionMaster.cpp
src/server/game/Movement/MovementGenerators/FleeingMovementGenerator.cpp
src/server/game/Movement/MovementGenerators/HomeMovementGenerator.cpp
src/server/game/Movement/MovementGenerators/PointMovementGenerator.cpp
src/server/game/Movement/MovementGenerators/RandomMovementGenerator.cpp
src/server/game/Movement/MovementGenerators/TargetedMovementGenerator.cpp
src/server/game/Movement/Spline/MoveSplineInit.cpp
2013-01-14 13:58:34 +00:00
Spp
802657250c
Core/Misc: Apply codestyle to multiple files
2013-01-14 09:50:59 +01:00
Spp
5f15600e7a
Core/Build: Fix linking and sooo many compile warnings
2013-01-09 13:13:39 +01:00
Vincent_Michael
b69dff28db
Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps
...
Conflicts:
src/server/game/World/World.cpp
src/server/worldserver/worldserver.conf.dist
2013-01-07 16:57:39 +01:00
blub
9ad1857e59
Merge pull request #8826 from joschiwald/mmaps_disable
...
Core/MMaps: use DisableMgr to disable pathfinding on a specific map
2013-01-07 07:52:35 -08:00
Nay
d0e4e20265
Merge pull request #8825 from joschiwald/vmapspelligno
...
Core/VMaps: drop "vmap.ignoreSpellIds" in config
this is not longer necessary since we use SPELL_ATTR2_CAN_TARGET_NOT_IN_LOS
2013-01-07 07:36:40 -08:00
Vincent_Michael
24e0eb1812
Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps
...
Conflicts:
src/server/game/Movement/Spline/MoveSplineInit.cpp
2013-01-05 16:55:17 +01:00
Nay
a509aea659
Core/Misc: Fix a couple of warnings, some of them performance related
...
Errors were found using Cppcheck, open-source static analysis tool
2013-01-04 23:14:14 +00:00
Vincent_Michael
62adbdab99
Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps
...
Conflicts:
src/server/game/Movement/MovementGenerators/HomeMovementGenerator.cpp
2013-01-01 23:12:21 +01:00
Vincent_Michael
cc65aba789
Update copyright note for 2013.
...
Happy new year.
2013-01-01 00:41:01 +01:00
Shauren
f1170ba0fb
Core: Fixed some level 4 warnings (msvc)
2012-12-31 20:43:14 +01:00
joschiwald
08f62d8313
Core/MMaps: use DisableMgr to disable pathfinding on a specific map
2012-12-30 21:09:21 +01:00
joschiwald
22896bd7a4
Core/VMaps: drop "vmap.ignoreSpellIds" in config, this is not longer necessary since we use SPELL_ATTR2_CAN_TARGET_NOT_IN_LOS
2012-12-30 18:52:32 +01:00
Nay
7e196e8e58
Merge remote-tracking branch 'origin/master' into mmaps
2012-12-27 17:53:34 +00:00
Subv
f6f3680995
Core/BuildSystem: Added some more headers to the collisions project PCH
2012-12-24 10:34:36 -05:00