Commit Graph

66 Commits

Author SHA1 Message Date
Anubisss
d9cb070215 Implement QueryResult_AutoPtr type which is ACE's reference counted auto_ptr(ACE_Refcounted_Auto_Ptr) for QueryResult pointers.
Use this auto_ptr for every DB queries(except QueryNamedResult yet).

This patch guarantees NO memory leaks from QueryResult pointers.

Thanks to raczman for the idea and for the helping to make this patch.

--HG--
branch : trunk
2010-01-23 14:45:58 +01:00
n0n4m3
99f66a6bc9 Updated copyright for new year.
--HG--
branch : trunk
2010-01-16 20:19:18 +03:00
QAston
c65aa45bc6 *Tabs to spaces
*Fix a type in CreatureEventAI.cpp from last rev

--HG--
branch : trunk
2010-01-10 02:12:02 +01:00
n0n4m3
c3ee3f537d Set use mtmaps by default, and cleanup some code in MapManager.
TODO: Set MapUpdate.Threads=0 in config, for full disable mtmaps, for correct work mtmaps, need ACE 5.7.2+, recommend 5.7.5

--HG--
branch : trunk
2009-12-21 07:58:19 +01:00
Rat
6fe36efe0f *apply trinity style to whole source
*comment out all mangos to trinity defines
*this will make merging a little harder, but code will be more clear

--HG--
branch : trunk
2009-12-20 15:20:04 +01:00
maximius
dc1207139a *Cleanup, proper indentation, and remove some wrong/irrelevant comments copied from custom patches..
--HG--
branch : trunk
2009-12-18 13:41:30 -08:00
n0n4m3
9f45beb67e Update Map for 322a and new instance system
--HG--
branch : trunk
2009-12-17 11:30:18 +01:00
n0n4m3
2028f0658b Removed mtmaps OpenMP
Implement mtmaps based on ACE
For stable work MapUpdate.Threads=2 in config

--HG--
branch : trunk
2009-12-17 07:34:00 +01:00
maximius
055f16f525 *Little cleanup, and access GetMaxVisibleDistance functions statically instead of through the sWorld singleton.
--HG--
branch : trunk
2009-11-22 19:56:48 -08:00
maximius
9b7f2240b8 *LIttle bit of cleanup, fix a warning.
--HG--
branch : trunk
2009-11-22 19:30:36 -08:00
tartalo
334a6c4162 Block access to instances if encounter is in progress only for raids (not for
5 player dungeons).
Don't count GMs for instance full block

--HG--
branch : trunk
2009-10-31 19:34:02 +01:00
maximius
ca1e026c4f *Fix build with mtmaps :/
--HG--
branch : trunk
2009-10-31 01:24:12 -07:00
maximius
4e242bae37 *Whoops, removed a bit too much there :(
--HG--
branch : trunk
2009-10-30 22:57:25 -07:00
maximius
26b43d24d5 *Remove two redundant hunks of code.
--HG--
branch : trunk
2009-10-30 22:56:20 -07:00
maximius
73fd6dbba6 *Make mtmaps a bit more stable, particularly when it updates players.
*Do some better cleanup on spec switching (should no longer strip away all auras, forcing a relog), unsummon totems, clear combo points, etc.
*Cleanup and optimization.

--HG--
branch : trunk
2009-10-30 22:52:37 -07:00
tartalo
cee745894c Violet Hold: Portal timer adjustments & fixes
Zuramat the Obliberator script, by Manuel

--HG--
branch : trunk
2009-10-24 15:39:32 +02:00
tartalo
d8c60cce4f MapManager.cpp: Deny access to an instance if player is permanently bounded to a different instance than group
--HG--
branch : trunk
2009-10-22 19:42:45 +02:00
tartalo
9e8961bc4c Fix some problems with instance full conditions. BTW, Implement maxPlayers = -1 as unlimited access
--HG--
branch : trunk
2009-10-22 18:35:52 +02:00
tartalo
9c81b3e51d MapManager: Block access to instances if encounter in progress or are full
--HG--
branch : trunk
2009-10-22 13:05:52 +02:00
tartalo
46c411b778 Backed out changeset 09d9acdcaed4
Sorry for the inconvenience. Part of this push was an untested patch that was miss pushed

--HG--
branch : trunk
2009-10-22 01:54:14 +02:00
tartalo
2d713bbc70 Fix compile && better solution for previos patch, by Spp
--HG--
branch : trunk
2009-10-21 23:46:07 +02:00
maximius
3f338cc1c3 *Massive cleanup redux.
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius
e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius
26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
maximius
f980dd9ac6 *Merge [8524] New cell search algorithm implemented. You can now choose different
visibility distances on continents, in BG/Arenas and instances. Author: Ambal
*Some warning cleanup

--HG--
branch : trunk
2009-09-27 02:24:25 -07:00
megamage
1f88411ccc *Delete object after map update. This will make mtmap safer.
--HG--
branch : trunk
2009-08-25 15:12:22 -05:00
maximius
e581351794 *Replace every tab with 4 spaces, checked by hand
--HG--
branch : trunk
2009-08-15 19:08:39 -07:00
megamage
befbae3a61 *Fix the bug that players get stuck after teleported out of bg.
*Do not delete the map immediately until all players are teleported.

--HG--
branch : trunk
2009-08-06 16:14:13 -05:00
QAston
8777efd03c *Add some crash prevention checks.
--HG--
branch : trunk
2009-08-03 12:52:31 +02:00
QAston
1d96091d2a *Improvements in map managing.
--HG--
branch : trunk
2009-08-01 00:20:32 +02:00
megamage
208087ff6e [8182] Store and use Map* pointer in WorldObject instead map ids for speedup Author: Ambal
Also some code logic cleanups.
    Changes let make more cleanups in base map access and other places,
    but this chnages not inlcuded in patch.

*This patch may cause crash.

--HG--
branch : trunk
2009-07-16 11:49:00 +08:00
QAston
da3569402d *Merge tc1 1591 - 1599, skip 1596
--HG--
branch : trunk
2009-06-27 15:51:36 +02:00
krz
dd52461d40 * Allow spells to trigger ItemCombatSpells if spell is melee/ranged damage based. Original patch by freegajnja
* Tabs to spaces.

--HG--
branch : trunk
2009-06-23 04:47:46 +02:00
panaut0lordv
efe02a5e36 Fix typo.
Raczman: Adding declaration makes Trinity compile much better :P

--HG--
branch : trunk
2009-06-19 08:47:07 +02:00
megamage
a49c2982ba *Merge.
*mtmap is disabled by default. To use it, define MULTI_THREAD_MAP in define.h
*mtmap support is not provided for windows users. Because there is no free openmp lib for windows. If you have openmp lib and want to use openmp, you need to manually change the setting.

--HG--
branch : trunk
2009-06-18 19:27:17 -05:00
megamage
fe7c616b2d [8031] Move player update code to Map::Update. Author: Ambal
--HG--
branch : trunk
2009-06-17 18:37:53 -05:00
megamage
3cf2be6042 [8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests. Author: Ambal
--HG--
branch : trunk
2009-06-16 11:19:59 -05:00
raczman
19225e8880 Added basic support for multithreaded map updates using openmp standard.
Windows users need to install Platform SDK to use this feature,
linux users have everything they need in gcc.
Number of threads used to update world is set by confiuration file,
and can be changed dynamically without restarting core.
Thanks to megamage and Jeniczek for testing and helping out with this.

--HG--
branch : trunk
2009-06-15 09:07:51 +02:00
megamage
427a81649b *Fix the bug that players cannot see anything in instance.
--HG--
branch : trunk
2009-06-09 23:52:45 -05:00
megamage
25e5c99dec [7810] Moved ZThread related code on ACE framework. Author: Ambal
Remove ZThread source code from mangos.

--HG--
branch : trunk
2009-05-13 18:22:21 -05:00
Anubisss
230b3d41ef *Use constant LANG_INSTANCE_RAID_GROUP_ONLY in a message which in CanPlayerEnter().
--HG--
branch : trunk
2009-04-07 18:01:22 +02:00
XTZGZoReX
cc2a089a9d * Trailing whitespace removed.
--HG--
branch : trunk
2009-04-06 21:14:51 +02:00
megamage
7915fd768a *Merge.
--HG--
branch : trunk
2009-03-06 18:09:01 -06:00
Blaymoira
fd2fd00c14 *Implement access_requirement table - by Iskander
- now check the requirements on teleport not only on areatrigger use
- moved some columns from instance_template and areatrigger_teleport to access_requirement table

--HG--
branch : trunk
2009-03-05 21:02:33 +01:00
megamage
d3a6900667 *Merge.
--HG--
branch : trunk
2009-02-26 20:43:35 -06:00
megamage
ccde296fd3 *Fix some crash bugs.
--HG--
branch : trunk
2009-02-25 17:53:05 -06:00
megamage
31637d4aac *Merge.
--HG--
branch : trunk
2009-02-18 11:36:19 -06:00
megamage
89ba43ef3e *Merge.
--HG--
branch : trunk
2009-02-17 21:54:48 -06:00
megamage
be53cfe104 *Fix some bugs of map/grid. Hope this can fix some crashes (without introducing new crash)
--HG--
branch : trunk
2009-02-17 21:50:18 -06:00
KingPin
14234c86fa Newline added to bottom of all files.
--HG--
branch : trunk
2009-02-17 20:07:49 -06:00