Commit graph

30 commits

Author SHA1 Message Date
VladimirMangos
fe6e2e1746 [9122] Updated copyright notice for new year.
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
VladimirMangos
01c852fee8 [8888] Use ACE for access to script lib
* This allow have more portable code and resolve some related portability problems.
* Also make default script library name lowcase at Windows in same way as used for Unix case.

Thanks to XTZGZoReX for Unix side testing :)
2009-11-29 16:15:18 +03:00
XTZGZoReX
1e9c672abd [8790] Remove useless/unused Base and CountedReference sources. 2009-11-08 12:22:41 +01:00
XTZGZoReX
4d2f4726fd Remove useless throw() and fix TBB warnings. 2009-11-06 18:17:53 +01:00
Ambal
a2ed351365 [8735] New memory allocator for MaNGOS, based on Intel Threading Building Blocks library. Performance gains depend greatly on OS you use!
You should add two libraries into your server binaries:
tbb.so/tbbmalloc.so on *nix and tbb(_debug).dll/tbbmalloc(_debug).dll on Windows!!!

Define USE_STANDARD_MALLOC while compiling 'framework' project to use OS' default memory allocator!

Signed-off-by: Ambal <pogrebniak@gala.net>
2009-10-26 00:59:35 +02:00
ApoC
45c9c136ba [8653] Implemented per map guids store.
This patch implements storing guid->object pairs on per map level, this leads
to less locking in ObjectAccessor in case of further multithreaded map update.

For case of cross map guid looking (auras cases) all maps are linked into
ObjectAccessor and can be traversed for this lookup.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-17 00:12:31 +02:00
Ambal
cfea99ea62 [8524] New cell search algorithm implemented. You can now choose different visibility distances on continents, in BG/Arenas and instances.
Please, update your config files and check new options:

Visibility.Distance.Continents    = 90
Visibility.Distance.Instances     = 120
Visibility.Distance.BGArenas      = 180

Thanks everyone involved in patch tests!

Signed-off-by: Ambal <pogrebniak@gala.net>
2009-09-21 23:25:29 +03:00
VladimirMangos
8bb451c85c [7420] Not set cdecl calling convention for x64 platform for Unic/Linux.
This will prevent generation "warning: 'cdecl' attribute ignored"
2009-03-09 10:09:59 +03:00
freghar
74b9874fd8 [7356] Use tabs for indent in Makefiles
Signed-off-by: freghar <compmancz@gmail.com>
2009-02-27 21:23:19 +01:00
VladimirMangos
3dd6b69adb [7343] Fixed uninitilized lock fields for grid info.
This must fix problem with unexpected lock grids data in memory
with enabled grid unloading config setting.
2009-02-26 08:53:54 +03:00
VladimirMangos
872d791ca6 [7335] Implement active objects support.
Active objects triggrering grid loading and updating around self like players.
It can be used for event long run movements or escoring quest travels.
Also can be used for proper implementation far vision spells.
Currently only creatures can be activated by function call (from script) cr->SetActiveObjectState(true);
Please avoid lot amount active objects in same time use. Existance active objects support isn't meaning
that each rabbit must be active creature.

Also added independent grid unloading locks for explicit unloading lock,
lock for used by instance copied grids, lock counter for actiove object spawn grids locks.
Last case required for prevent double spawn active creature walk far away from spawn point.
2009-02-25 13:44:49 +03:00
VladimirMangos
9b3daf3933 [7330] Code warnings and style cleanups. Some bugs fixes.
1) comparison singed and unsigned values
2) redundent includes
3) wrong constructor :-part field initilization
4) unused not-/*name*/-guarded args in template/virtual functions that not required like args.
5) explicitly list not implemented achievement types.

Also bugs fixed:
1) Drop wrong phase mask 0 check in WorldObject::InSamePhase.
2) ArenaTeamMember::ModifyPersonalRating incorrect work with move points in negative with infinity values in result.
3) ArenaTeam::SaveToDB code send uint64 value to string with arg format %u.
2009-02-24 01:54:53 +03:00
VladimirMangos
9e590f7ceb [7114] Code cleanups.
Remove redundant `inline` for in-class function definitions.
Fixed float -> int implicit casts.
2009-01-19 15:13:57 +03:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
VladimirMangos
9aa0578770 [6856] Fixed typo in not used function. This let build mangos with VS90/GCC. 2008-11-28 16:15:15 +03:00
Wyk3d
8b707ca072 [6855] Fixed the MapReference loop on map update by storing the iterator in the map. 2008-11-28 13:17:01 +02:00
Wyk3d
bdf7fb8394 [6849] Fixed build on linux (patch provided by Tabak) 2008-11-26 14:42:30 +02:00
hunuza
79558a32d9 Introduce player map references. 2008-11-16 21:47:18 +01:00
derex
5055d957e2 Restore build for GCC < 4.3. 2008-11-09 13:27:22 +02:00
Wyk3d
61a3159c31 [6811] Use unordered_map only from gcc 4.3.x where it became deprecated 2008-11-09 12:01:26 +02:00
Wyk3d
ca31e21740 [6808] Fixed VC9 build when TR1 is not present and added revision number output to the exception report 2008-11-08 22:03:42 +02:00
VladimirMangos
5222f49820 Use (if available) TR1 unordered_map instead hash_map at Unix/Linux (in GCC 4.0.0 and later) and Windows (VC90 and later) 2008-11-08 11:44:13 +03:00
VladimirMangos
88b1974df6 Fixed warnings, unused code and typos.
Including fix  _SCallback for 3 params, triggred mode correct call for .cast back and .cast target.
Remove outdated code for support old 19421 (and ranks) implementation in client data.
2008-11-05 05:06:35 +03:00
VladimirMangos
ce351382a3 Remove unused src/game/HateMatrix.h and references.
Also one explicit include for used header.
2008-11-04 22:28:06 +03:00
VladimirMangos
3e43600c3b Correct check for ACE_BIG_ENDIAN. Warning fixed and code cleanups. 2008-11-03 23:59:06 +03:00
VladimirMangos
ed7390dede Instead mark spell as delatable mark it as executed and referenced from Unit current spells array and not deleted spell in like cases.
This is solve crashs if spell deleted at caster die in result triggered spells casting chain from currently executed spell.
2008-11-03 01:48:14 +03:00
VladimirMangos
51b2290be6 Some endianess related fixes and cleanups
* Fixed: build fail at bigendian platform in result typo in code
* Hide endianess related convertions into EndianConvert/EndianConvertReverse calls
* Linkning errors protection from attemps convertion pointers.
2008-10-24 04:06:27 +04:00
derex
2073ab6365 Replace some defines with more portable ones. 2008-10-16 21:38:42 +03:00
TheLuda
5d294f0ad2 Applied new coding standard, see http://github.com/mangos/mangos/wikis/codingstandards for more. 2008-10-15 18:25:55 +02:00
TheLuda
800ee76535 Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00