aboutsummaryrefslogtreecommitdiff
path: root/src/game/Map.cpp
AgeCommit message (Collapse)Author
2010-01-29* Implement ↵XTZGZoReX
CMSG_CORPSE_MAP_POSITION_QUERY/CMSG_CORPSE_MAP_POSITION_QUERY_RESPONSE opcodes. Thanks to: Ceris, Lightguard, raczman for helping with research/code. * Fix SMSG_QUERY_TIME_RESPONSE use/structure. Patch/research by TOM_RUS. --HG-- branch : trunk
2010-01-23* Remove CellLock class and all cell-level thread locking.XTZGZoReX
** 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-23Implement QueryResult_AutoPtr type which is ACE's reference counted ↵Anubisss
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-22*Prevent assertion fail in Unit::_AddAura after creature add to remove list.QAston
--HG-- branch : trunk
2010-01-19*Integrate Script system to CoreRat
-added ScriptMgr for loading scripts -removed bindings -moved script system to src/game -moved scripts to src/scripts -VC project files updated -cmakes updated (not 100% done yet) NOTE to Devs: -file locations changed -precompiled renamed to ScriptedPch -ecsort_ai renamed to ScriptedEscortAI -follower_ai renamed to ScriptedFollowerAI -guard_ai renamed to ScriptedGuardAI -simple_ai renamed to ScriptedSimpleAI -sc_creature renamed to ScriptedCreature -sc_gossip renamed to ScriptedGossip -sc_instance renamed to ScriptedInstance *use the new headers in scripts, thank you NOTE to ALL: cmake not fully tested, please report any errors with it could make creashes, incompability USE AT YOUR OWN RISK before further tests!! --HG-- branch : trunk
2010-01-18Auras with turn/move interrupt flags are now removed for creatures when they ↵silver1ce
turn/move, cleanup --HG-- branch : trunk
2010-01-17Fixed crash in Wintergrasp when send incorrect GetArea flag and coordinatsn0n4m3
--HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-16some changes into grid relocations, cleanupsilver1ce
player with incorrect coordinates wouldn't be added into map, fixed problem that sometimes grid not marked as active even with players inside --HG-- branch : trunk
2010-01-12*Make sure that any aura (in case of aura remove linked auras for example) ↵QAston
won't survive Unit::RemoveAllAuras. --HG-- branch : trunk
2010-01-10Resolves #259 fixed crash, caused by incorrect cell_id generationsilver1ce
--HG-- branch : trunk
2010-01-10dropped old code, which unused since new visibility system implementedsilver1ce
--HG-- branch : trunk
2010-01-06call SetPosition when player relocated by movement generator.silver1ce
SetPosition should interrupt auras with movement or turn interrupt flags, update position for group, etc --HG-- branch : trunk
2010-01-06fixed the bug that GetVmapHeight returns incorrect height on terrains(flying ↵silver1ce
units fall below map etc) also unlocked max ray lenght for getHeight, by default it's 10 yards --HG-- branch : trunk
2009-12-24Temporary revert 6743 commit. I fix this patch across 1-2 days.n0n4m3
--HG-- branch : trunk
2009-12-23Replaced time(NULL) on sGameTime.GetGameTime() this is used for better ↵n0n4m3
performance. Original Timer.h divided into 2 parts. Shared project has no need to know about GameTime Singleton. 2 Identical structures with different types are now replaced with one generic templated structure and 2 typedefs. --HG-- branch : trunk
2009-12-20*apply trinity style to whole sourceRat
*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-19Implement SCRIPT_COMMAND_KILL_CREDIT (8). by NoFantasyn0n4m3
--HG-- branch : trunk
2009-12-19Implement new visibility system, based on Silverice patch for mangosn0n4m3
--HG-- branch : trunk
2009-12-17Update Map for 322a and new instance systemn0n4m3
--HG-- branch : trunk
2009-12-17Removed mtmaps OpenMPn0n4m3
Implement mtmaps based on ACE For stable work MapUpdate.Threads=2 in config --HG-- branch : trunk
2009-12-17Replace some assert with return statement, fixed some crash bugsn0n4m3
--HG-- branch : trunk
2009-12-06Some area flag fixes:spp
- Krasus Landing (Dalaran) - The Forlorn Mine (Storm Peaks) - Boulderslide Cavern (Stonelaton Mountains) - Palemane Rock (Mulgore) --HG-- branch : trunk
2009-12-02Fix switch logic (I forgot a break; on a previous commit)tartalo
--HG-- branch : trunk
2009-12-01Fix area flag problem, by Spp: Dalaran. Closes #509tartalo
--HG-- branch : trunk
2009-12-01Fix area flag problem, by Spp: The Forlorn Mine. Closes #567tartalo
--HG-- branch : trunk
2009-11-22*Little cleanup, and access GetMaxVisibleDistance functions statically ↵maximius
instead of through the sWorld singleton. --HG-- branch : trunk
2009-11-22*LIttle bit of cleanup, fix a warning.maximius
--HG-- branch : trunk
2009-11-20*Some cleanup (mostly whitespace changes)maximius
--HG-- branch : trunk
2009-11-01Fix crashtartalo
--HG-- branch : trunk
2009-10-31*Reinit the iterator in each loop as the iter is removed from the list, in ↵maximius
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-31Block access to instances if encounter is in progress only for raids (not fortartalo
5 player dungeons). Don't count GMs for instance full block --HG-- branch : trunk
2009-10-30*Make mtmaps a bit more stable, particularly when it updates players.maximius
*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-18*Cleanupmaximius
--HG-- branch : trunk
2009-10-17*Massive cleanup redux.maximius
--HG-- branch : trunk
2009-10-17*Backed out changeset 3be01fb200a5maximius
--HG-- branch : trunk
2009-10-17*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and ↵maximius
some other cleanups by hand) *Fix a possible crash in Spell::DoAllEffectOnTarget --HG-- branch : trunk
2009-09-27*Merge [8524] New cell search algorithm implemented. You can now choose ↵maximius
different visibility distances on continents, in BG/Arenas and instances. Author: Ambal *Some warning cleanup --HG-- branch : trunk
2009-09-18*[8475] fixed some gcc-warnings Author: balrokmaximius
*[8476] Revert some recent cleanup changes, some other fixes and cleanups. Author: VladimirMangos *[8489] Fixed player visibility update in case view point different from player itself. Author: SilverIce *[8493] Avoid unexpected multiply error messages at wrong `quest_template`.`RewSpell*` Author: VladimirMangos *[8496] Resolve some #include cycles and unsafe code. * Common.h -> Threading.h -> Errors.h -> Common.h * Remove reduncdent #include "ByteBuffer.h" in headers * Remove redundent #include "Auth/BigNumber.h" in headers * Avoid multyply data copy at use some now dropped functions in BigNumber. * Avoid copy fixed byte count from byte arrays with unknown real size created from BigNumber. * Avoid possible problems for build mangos at different platform or compilers. Author: VladimirMangos. *[8501] Apply code style and cleanups to some Player functions. Author: VladimirMangos. *[8502] Disable quests related to specific game events at startup if event not active. Also rename member boolean variable. Author: NoFantasy *[8506] Add check for IsAutoComplete() in SendPreparedQuest(). For cases where quest is repeatable but has Method!=0, QuestDetails must be sent instead of RequestItems. Some additional code cleanup. Author: NoFantasy *[8507] Check amount of spawned pools before decrement to avoid unexpected result. Also rename variable to more meaningful name. Signed-off-by: NoFantasy <nofantasy@nf.no> Thanks to Stryker and onkelz28! --HG-- branch : trunk
2009-09-15[8500] Fixed long existed bug with vmaps unloading.Chaz Brown
When order of coordinates has been updated for loading case, unloading part escape fixing in past. Patch By Jolan --HG-- branch : trunk
2009-09-14Backed out changeset d3fe2d6d504a (please test your patches thoroughly ↵maximius
before getting me to push them ogeraisi) --HG-- branch : trunk
2009-09-14*Merged MaNGOS [8458], [8475], [8476] by ogeraisi, thanks to all authors :)maximius
--HG-- branch : trunk
2009-09-13*Missed a Boss Emote Command changemaximius
--HG-- branch : trunk
2009-09-13*Event Hooks (OnLogin, OnLogout, OnPVPKill) by Hawthornemaximius
*Boss Emote Command for DB Scripts by XTElite1 --HG-- branch : trunk
2009-09-09*Some GUID cleanup, don't want any Linux crashes ;) (thanks Zor)maximius
--HG-- branch : trunk
2009-08-30*More verbose EAI output messages.. this should probably be double-checked ↵maximius
for validity. --HG-- branch : trunk
2009-08-29*Remove some log spams.megamage
--HG-- branch : trunk
2009-08-25*Delete object after map update. This will make mtmap safer.megamage
--HG-- branch : trunk
2009-08-23*Update vehicle system. Make vehicle a seperate class from creature.megamage
--HG-- branch : trunk
2009-08-19*Add script lock for ScriptsProcess() because some bad scripts may cause ↵megamage
dead loop. --HG-- branch : trunk