Commit Graph

242 Commits

Author SHA1 Message Date
silver1ce
74bd8084a0 dropped old code, which unused since new visibility system implemented
--HG--
branch : trunk
2010-01-10 16:33:14 +02:00
silver1ce
6933199257 call SetPosition when player relocated by movement generator.
SetPosition should interrupt auras with movement or turn interrupt flags, update position for group, etc

--HG--
branch : trunk
2010-01-06 12:26:18 +02:00
silver1ce
f82d5cb3fc fixed the bug that GetVmapHeight returns incorrect height on terrains(flying units fall below map etc)
also unlocked max ray lenght for getHeight, by default it's 10 yards

--HG--
branch : trunk
2010-01-06 12:15:02 +02:00
n0n4m3
250a00cc1c Temporary revert 6743 commit. I fix this patch across 1-2 days.
--HG--
branch : trunk
2009-12-24 10:20:15 +01:00
n0n4m3
3fe0bc5254 Replaced time(NULL) on sGameTime.GetGameTime() this is used for better 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-23 08:04:10 +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
1f9530af21 Implement SCRIPT_COMMAND_KILL_CREDIT (8). by NoFantasy
--HG--
branch : trunk
2009-12-19 18:53:27 +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
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
n0n4m3
365f0ae562 Replace some assert with return statement, fixed some crash bugs
--HG--
branch : trunk
2009-12-17 06:49:36 +01:00
spp
314031016b Some area flag fixes:
- Krasus Landing (Dalaran)
- The Forlorn Mine (Storm Peaks)
- Boulderslide Cavern (Stonelaton Mountains)
- Palemane Rock (Mulgore)

--HG--
branch : trunk
2009-12-06 10:05:01 +01:00
tartalo
327a400e0b Fix switch logic (I forgot a break; on a previous commit)
--HG--
branch : trunk
2009-12-02 11:49:50 +01:00
tartalo
b7934fc245 Fix area flag problem, by Spp: Dalaran. Closes #509
--HG--
branch : trunk
2009-12-01 11:11:41 +01:00
tartalo
23671382f0 Fix area flag problem, by Spp: The Forlorn Mine. Closes #567
--HG--
branch : trunk
2009-12-01 11:10:12 +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
maximius
654519d1a6 *Some cleanup (mostly whitespace changes)
--HG--
branch : trunk
2009-11-20 19:11:28 -08:00
tartalo
e634533f91 Fix crash
--HG--
branch : trunk
2009-11-01 15:58:05 +01: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
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
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
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
maximius
333f1c9d72 *[8475] fixed some gcc-warnings Author: balrok
*[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-18 14:10:37 -07:00
Chaz Brown
1870644bf7 [8500] Fixed long existed bug with vmaps unloading.
When order of coordinates has been updated for loading case, unloading part
escape fixing in past.

Patch By Jolan

--HG--
branch : trunk
2009-09-15 20:55:14 -04:00
maximius
140ec674a0 Backed out changeset d3fe2d6d504a (please test your patches thoroughly before getting me to push them ogeraisi)
--HG--
branch : trunk
2009-09-14 16:49:23 -07:00
maximius
b37f9b1e55 *Merged MaNGOS [8458], [8475], [8476] by ogeraisi, thanks to all authors :)
--HG--
branch : trunk
2009-09-14 16:02:13 -07:00
maximius
8c94b29b09 *Missed a Boss Emote Command change
--HG--
branch : trunk
2009-09-13 00:03:54 -07:00
maximius
eef5abe6e1 *Event Hooks (OnLogin, OnLogout, OnPVPKill) by Hawthorne
*Boss Emote Command for DB Scripts by XTElite1

--HG--
branch : trunk
2009-09-13 00:01:35 -07:00
maximius
0d8ea7cd97 *Some GUID cleanup, don't want any Linux crashes ;) (thanks Zor)
--HG--
branch : trunk
2009-09-09 10:30:14 -07:00
maximius
1ba42f208c *More verbose EAI output messages.. this should probably be double-checked for validity.
--HG--
branch : trunk
2009-08-30 20:12:53 -07:00
megamage
927b96ed90 *Remove some log spams.
--HG--
branch : trunk
2009-08-29 15:29:14 -05:00
megamage
1f88411ccc *Delete object after map update. This will make mtmap safer.
--HG--
branch : trunk
2009-08-25 15:12:22 -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
bd0dbcc9ad *Add script lock for ScriptsProcess() because some bad scripts may cause dead loop.
--HG--
branch : trunk
2009-08-19 17:42:56 -05:00
megamage
cfd24129d3 *Fix a crash by looting player's corpse when the bg is unloaded.
--HG--
branch : trunk
2009-08-18 17:44:17 -05:00
megamage
0ca7275043 *more area flags for Dalaran By raven_coda
--HG--
branch : trunk
2009-08-18 17:18:24 -05:00
megamage
b3c9916177 *Fix the crash caused by map::removing does not really resetmap
--HG--
branch : trunk
2009-08-14 14:09:57 -05:00
megamage
e0449b421c *Add some detailed error log in SCRIPT_COMMAND_CAST_SPELL so we can know what is causing spams
--HG--
branch : trunk
2009-08-13 14:39:01 -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
24c8931ae9 *Fix a crash caused by corpses.
--HG--
branch : trunk
2009-08-12 15:33:12 -05:00
megamage
3078bf6fd0 *Fix a crash caused by setmap.
--HG--
branch : trunk
2009-08-11 18:23:54 -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
megamage
e3d00708a9 *Fix a crash since the last rev.
--HG--
branch : trunk
2009-08-11 10:01:39 -05:00