aboutsummaryrefslogtreecommitdiff
path: root/src/game/Map.cpp
AgeCommit message (Collapse)Author
2010-05-01Fix instance load broken by me in 8c4b824176Spp
--HG-- branch : trunk
2010-04-19More warning removal (Some code modifications and cleanup when needed)Spp
--HG-- branch : trunk
2010-04-19Remove LOTS of compile warningsSpp
--HG-- branch : trunk
2010-04-08Code Style (game + scripts only):Spp
"!=" --> " != " (when needed) " !=" --> " !=" "!= " --> "!= " --HG-- branch : trunk
2010-04-07Code Style (game + scripts only):Spp
">=" --> " >= " (when needed) " >=" --> " >=" ">= " --> ">= " "<=" --> " <= " (when needed) " <=" --> " <=" "<= " --> "<= " " ==" --> " ==" "== " --> "== " --HG-- branch : trunk
2010-04-07Code Style (game + scripts only):Spp
"==" --> " == " (when needed) --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"( " --> "(" " )" --> ")" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"if(" --> "if (" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"while(" --> "while (" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"for(" --> "for (" --HG-- branch : trunk
2010-04-07Code Style: Remove trailing spacesSpp
--HG-- branch : trunk
2010-03-30Added SCRIPT_COMMAND_MODEL 32 Allows changing of npc model in db scripts.malcromdev@gmail.com>
--HG-- branch : trunk
2010-03-29Added script command 31 SCRIPT_COMMAND_EQUIP inables an npc to change ↵malcromdev@gmail.com>
weapons in TC scripts. --HG-- branch : trunk
2010-03-17Upgraded SCRIPT_COMMAND_EMOTE to do state emotes, too, based on datalong2 ↵Xanadu
value. By Malcrom. --HG-- branch : trunk
2010-03-11Convert some C style casts to new functionsthenecromancer
--HG-- branch : trunk
2010-03-11Fixed SCRIPT_COMMAND_ORIENTATION, orientation needs to be float. Credit to ↵Xanadu
Malcrom. --HG-- branch : trunk
2010-03-07Some Creature* casts moved to new ToCreature.raczman
Added const Creature* ToCreature() --HG-- branch : trunk
2010-03-01Implemented SCRIPT_COMMAND_ORIENTATION._manuel_
--HG-- branch : trunk
2010-02-27removed redundant linkingsilver1ce
--HG-- branch : trunk
2010-02-27Update visibility systemsilver1ce
*visibility updates and ai relocations processed simultaneously for each grid *these operations now are not synchronized for different grids *some changes into structure of visibility notifiers --HG-- branch : trunk
2010-02-14* Core switch to client 3.3.2 (11403)Brian
* Credits (in no particular order) to: * n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo, * thenecromancer, Xanadu, Trazom, Zor, kiper * Additional credits to: * TOM_RUS and NoFantasy from MaNGOS * Thanks for testing Aokromes and XTElite1 * SoTA still needs some work, but is very playable (huge thanks to raczman and * kiper) * To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the * last rev you are on * and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world * DBs * Known problem with guild banks. --HG-- branch : trunk
2010-02-05Yet more cleanup, mostly in the script system. This should conclude the ↵Xanadu
script integration into core. --HG-- branch : trunk
2010-02-03cleanup into grid containerssilver1ce
grid containers doesn't contains guid keys, so guid parameter is useless, removed find functions(anyway result of search would be null always) --HG-- branch : trunk
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