Commit Graph

238 Commits

Author SHA1 Message Date
XTZGZoReX
9f00ca3eb8 * Remove CellLock class and all cell-level thread locking.
** It was wasting CPU power as cell-level locking is not needed.
** Our multithreading is on map-level, not cell-level.
** CellLock was just a 'proxy' between Cell and CellPair and in some cases carried redundant data.
** Some minor cleanup in Cell::Visit/Map::Visit.

--HG--
branch : trunk
2010-01-23 22:24:41 +01:00
QAston
216d32e8a7 *Prevent assertion fail in Unit::_AddAura after creature add to remove list.
--HG--
branch : trunk
2010-01-22 20:03:47 +01:00
QAston
f5dea61b66 *Remove some of no longer needed debug code.
--HG--
branch : trunk
2010-01-18 23:47:26 +01:00
QAston
a1bbbd1421 *Cleanups before delete after not successfull load pet from db. Thanks to Drahy for debug traces.
--HG--
branch : trunk
2010-01-18 23:12:35 +01:00
QAston
9a7746c9fc *Add some debug info to trac reason of assertion fail in Unit destructor.
--HG--
branch : trunk
2010-01-18 18:42:36 +01:00
n0n4m3
99f66a6bc9 Updated copyright for new year.
--HG--
branch : trunk
2010-01-16 20:19:18 +03:00
QAston
8e9d2cdf01 Update aura system:
* Change system logic - unify Auras, AreaAuras and PersistentAreaAuras:
  * Aura has now its owner - which is the WorldObject, which applies aura (creates AuraApplication object) dependant on aura radius, and effect type
  * Owner can be Dynobj (DynObjAura class) for PersistentAreaAuras, or Unit (UnitAura class) for Area and nonArea auras
  * Aura data is shared for all units which have AuraApplication of the Aura
   * Because of that AuraEffect handlers , and periodic tick functions can't modify AuraEffect object (they are const now)
  * Remove spell source and AreaAuraEffect classes
  * Add AuraEffect::UpdatePeriodic function, to allow periodic aura object modification (target independant)
  * Add AuraEffect::CalculateAmount and AuraEffect::CalculateSpellMod function, to allow non-default amount calculation
  * AreaAura updates are done in owner _UpdateSpells cycle
  * Since now you don't need to wait an aura update cycle to get area aura applied on it's correct target list
  * And you can access area aura target list
  * Add basic support for aura amount recalculation
  * Save recalculation state and base amount of auras to db
  * Add AuraEffect::CalculatePeriodic function to determine if aura is periodic, and to set correct tick number after aura is loaded from db
  * Add ChangeAmount function in addition to SetAmount function, to allow easy reapplication of AuraEffect handlers on all targets
  * Sort aura effect handlers in SpellAuras.cpp and .h by their use
  * Add check for already existing aura of that type to some AuraEffect handlers, to prevent incorrect effect removal
  * SPELL_AURA_CONVERT_RUNE and MOD_POWER_REGEN and MOD_REGEN hacky handlers are now implemented correctly
  * Send aura application client update only once per unit update - prevent unnecesary packet spam
 * Fix ByteBuffer::appendPackGUID function - it added additionall 0s at the end of the packet
 * Fix memory leak at player creation (not deleted auras)
 * Updated some naming conventions (too many to mention)
 * Added Unit::GetAuraOfRankedSpell() function
 * Remove procflags on aura remove, use Aura::HandleAuraSpecificMods instead
 * Added functions to maintain owned auras (GetOwnedAuras, GetOwnedAura, RemoveOwnedAura, etc)
 * Implement AURA_INTERRUPT_FLAG_LANDING
 * Implement EffectPlayerNotification (thanks to Spp)
 * Remove wrong aura 304 handler
 * Add better handler for death runes
 * Remove unnecesary variables from DynamicObject class, and cleanup related code, link dynobj duration with aura
 * Add GetAuraEffectTriggerTarget function in CreatureAi for special target selection for periodic trigger auras used in a script
 * Add many assert() procection from idiots using some functions in wrong way
 * I am to lazy to write here anything more
Thanks to Visagalis for testing this patch
PS: Do not make patches like this, please

--HG--
branch : trunk
2010-01-10 01:23:15 +01:00
n0n4m3
cc19e73174 Merge
--HG--
branch : trunk
2009-12-20 17:39:36 +01:00
n0n4m3
851a514f90 fix visual bug that flying creatures displayed as walking at place
--HG--
branch : trunk
2009-12-20 17:38:09 +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
n0n4m3
5a3b3d83ee Fixed some typos and revert one commit
--HG--
branch : trunk
2009-12-19 19:46:07 +01:00
n0n4m3
5f0c623f8a Remove trainer npcflags for player that can not train from npc. by NoFantasy
--HG--
branch : trunk
2009-12-19 18:29:09 +01:00
n0n4m3
ef2cbee517 Avoid not needed too oftent send update data, cleanups. by SilverIce
--HG--
branch : trunk
2009-12-19 17:58:45 +01:00
n0n4m3
243f33b5ea Implement new visibility system, based on Silverice patch for mangos
--HG--
branch : trunk
2009-12-19 10:12:40 +01:00
n0n4m3
3e133c4786 [9012] fix crash when achievement is completed and player isn't in world
--HG--
branch : trunk
2009-12-17 19:09:40 +01:00
n0n4m3
63659ea18b Update some code for 322a
--HG--
branch : trunk
2009-12-17 11:40:23 +01:00
spp
5d988a617f Fix Dancing Rune Weapon. By liberate, closes #365
--HG--
branch : trunk
2009-12-14 01:51:12 +01:00
Kudlaty
9bd797d402 Apply #412.
Add support to gameobject type Transport (11) that should stop like Orgrimmar arena Elevators or pilars.
Patch by Spp and Opterman

--HG--
branch : trunk
2009-11-27 01:41:26 +01:00
maximius
da5c1bca54 *Cleanup, fix a few warnings, and make the SD2 grid searchers just pass through to the standard Trinity grid searchers, as they have identical functionality. Thanks thmarth. Closes #387, #388
--HG--
branch : trunk
2009-11-22 00:46:38 -08:00
maximius
654519d1a6 *Some cleanup (mostly whitespace changes)
--HG--
branch : trunk
2009-11-20 19:11:28 -08:00
maximius
743578b81f *Reinit the iterator in each loop as the iter is removed from the list, in AuctionHouseObject::Update, by Trazom
*No longer disregard z/o in Map::CreatureRelocation, thanks Sisif
*Cleanup, and make Divine Storm default to m_caster is no unitTarget is available
*Some mtmaps optimization

--HG--
branch : trunk
2009-10-31 16:00:47 -07:00
maximius
d22768a6b5 *Cleanup
--HG--
branch : trunk
2009-10-18 18:38:46 -07: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
Kudlaty
b4cd005f03 Reapply patch about changing modelid_a/h(2) values to modelid1..4, display ids are no longer incorrectly chosen based on player faction.
--HG--
branch : trunk
2009-09-21 07:52:16 +02:00
Kudlaty
8c255266e7 Fix some issues with game object create according to last patch. Thx to NoFantasy and DearScorpion
--HG--
branch : trunk
2009-09-04 05:11:27 +02:00
Kudlaty
2465ef00a2 Fix bug with going trough things on login. Thanks to Opterman and Nofantasy
--HG--
branch : trunk
2009-09-03 23:40:14 +02:00
megamage
85ab4599ee [FIX] Energy/Mana Regeneration By HiZed
--HG--
branch : trunk
2009-09-02 15:05:18 -05:00
megamage
d802cd3811 *More update about positions.
*Ulduar: do not allow demolisher to regenerate pyrite. Player must shoot down and grab the containers to refill pyrite.

--HG--
branch : trunk
2009-08-29 23:20:16 -05:00
megamage
2a4c9bcaf9 *Make position as a class;
--HG--
branch : trunk
2009-08-29 14:58:45 -05:00
megamage
6de6557bf0 *Fix a crash caused by gm command .object move and so on
--HG--
branch : trunk
2009-08-28 14:19:14 -05:00
megamage
a4978bb90a *Add some crash log.
--HG--
branch : trunk
2009-08-26 19:35:20 -05:00
megamage
21af4cf832 *Some clean up and add debug info to find the reason of crash.
--HG--
branch : trunk
2009-08-26 19:28:21 -05:00
megamage
285f3a60f4 *Do not reset map id in resetmap.
--HG--
branch : trunk
2009-08-25 19:22:45 -05:00
megamage
8cedad1a0f *Do not make getmapid virtual function to improve speed.
--HG--
branch : trunk
2009-08-25 11:42:18 -05:00
megamage
a029ae15e5 *Fix some summon vehicle spells.
--HG--
branch : trunk
2009-08-24 12:54:36 -05:00
megamage
1ee90e1022 *Update vehicle system. Make vehicle a seperate class from creature.
--HG--
branch : trunk
2009-08-23 22:09:43 -05:00
megamage
b35fe879ad *Some update of spell target selection.
--HG--
branch : trunk
2009-08-23 00:46:21 -05:00
megamage
db066046df *Do not always set faction in summonvehicle function.
--HG--
branch : trunk
2009-08-23 00:43:49 -05:00
megamage
6169483d0f *Set vehicle owner guid and faction in summonvehicle instead of spelleffecthandler.
--HG--
branch : trunk
2009-08-19 23:01:56 -05:00
megamage
c9ddf9258d *Do not assert !map for non-corpse worldobjects.
--HG--
branch : trunk
2009-08-13 17:02:17 -05:00
megamage
9cff946d8d *Add an assert in ~worldobject
--HG--
branch : trunk
2009-08-13 11:47:38 -05:00
megamage
7292420583 *Rewrite and simplify sendmessagetoset functions. This fixes the bug that player cannot see dummy aura is cancelled when puppet is far away.
--HG--
branch : trunk
2009-08-12 23:23:53 -05:00
megamage
92769d3ffe *first remove corpse from world then resetmap
--HG--
branch : trunk
2009-08-12 23:12:33 -05:00
megamage
a30e3b7bd3 *Fix a crash caused by addnpc command.
--HG--
branch : trunk
2009-08-12 13:03:44 -05:00
megamage
0f18e49052 *Add some asserts back.
--HG--
branch : trunk
2009-08-11 16:39:35 -05:00
megamage
962b88a381 *ResetMap for worldobjects when map is deleted.
--HG--
branch : trunk
2009-08-11 16:33:33 -05:00
megamage
9403ff03e7 *Only use m_isWorldObject to check if an object is in grid or world.
--HG--
branch : trunk
2009-08-11 16:14:45 -05:00