aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameObject.cpp
AgeCommit message (Collapse)Author
2010-04-30Fix trap spell casting.Spp
Improved version of Supabad's patch Closes issue 1910. --HG-- branch : trunk
2010-04-30Block battleground-flag from being picked up while player is on a vehicleclick
Fix by Scazzato - closes issue #1161 --HG-- branch : trunk
2010-04-19Remove LOTS of compile warningsSpp
--HG-- branch : trunk
2010-04-11Fix script started twice for Gobber (GO type=10) with eventID.Trazom62
Fixes issue #1589. With help of Az@zel, thanks. --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: tab to spacesSpp
--HG-- branch : trunk
2010-04-04Fix Fishing skill in low level zones, where the zone_skill is < 0. The ↵Trazom62
formula was not correct for those cases. Fixes isssue #1387. Note: junk loot is still not yet implemented. --HG-- branch : trunk
2010-04-01Fix Go type 10 spell handling by QAstonmalcromdev@gmail.com>
--HG-- branch : trunk
2010-03-11Implement group loot for chest having GroupLootRules (go type=3, data15=1).Trazom62
Implement round robin loot. Implement round robin for underthreshold items (group loot and need befor greed). Fix "all players pass" bug on creature. Add SMSG_LOOT_LIST message to indicate looter (round robin or master). And some other minor loot bugs. Fixes issue #167. Fixes issue #247. --HG-- branch : trunk
2010-03-07Added new type-safe cast functions.raczman
This, when properly used, should get rid of most memory corruption issues, currently, casting types C-style with no checks leads to some abstract crashing. Functionality is same as with dynamic_cast<>, but with no RTTI check - so when casting into invalid type you will receive NULL, and most probably crash. At the same time, i took the liberty to convert most Player* casts to ToPlayer(). Still needs crapload of casts being moved to new facility. --HG-- branch : trunk
2010-02-24* As of patch 3.3.2 there is no longer a maxlevel requirement for meetingBrian
* stones. * Credits Kaelima --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-03*Move object's field\visibility update functions to object from accessorsilver1ce
removed useless SendUpdateObjectToAllExcept - anyway fields will be updated, there is no sense to force update them --HG-- branch : trunk
2010-01-30* Set the default spawntimesecs for creatures / gameobjects added in game to ↵Brian
5 minutes * Was 25 seconds * Thanks Paradox --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-22*Prevent assertion fail in Unit::_AddAura after creature add to remove list.QAston
--HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-16 Rewrite parts of GameObject use for GO type 10, by NoFantasy.n0n4m3
--HG-- branch : trunk
2010-01-16Fix a meam leak in GameObject's destructor.Anubisss
main part of my log: ==19804== 584 bytes in 73 blocks are definitely lost in loss record 107 of 298 ==19804== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==19804== by 0x930A2B: GameObject::GameObject() (GameObject.cpp:43) --HG-- branch : trunk
2010-01-07fishing: send correct message when fish escape.Trazom62
--HG-- branch : trunk
2009-12-31* Re-Fixed GO type 6 and type 8 to use radius for distance calculations insteadBrian
* of diameter. This will prevent things like people getting burned even though * you aren't touching the fire. --HG-- branch : trunk
2009-12-26Fixed crash in lookup GO gossipn0n4m3
--HG-- branch : trunk
2009-12-25Fix typo in GO gossipID check for type 10. by NoFantasyn0n4m3
--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-20Merge MaNGOS, Gossip System. Autor NoFantasy.win32
* DB support required * Closes #859 --HG-- branch : trunk
2009-12-20* Add support for the use of Gameobject type 10 (GOOBER) use when not on questBrian
* if data1=-1 --HG-- branch : trunk
2009-12-16MaNGOS merge: Mail System.win32
* Store loot in mail_loot_template indexed by mail template ids. * Implement proper creating mail text copy item from mail template based mail. * Move send functions to new MailDraft class from WorldSession. * Implement mails sending at player levelup. * Autor VladimirMangos, converted by me. --HG-- branch : trunk
2009-11-30Fix some issues with fishing. Closes #421, patch by make_the_kingMachiavelli
--HG-- branch : trunk
2009-11-27Apply #412.Kudlaty
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-21*Cleanup, more consistant HandleDummyAuraProc code (added basepoints1 and ↵maximius
basepoints2 and edited some spell cases to use these instead of more hacky custom methods..) --HG-- branch : trunk
2009-11-03*Update WorldSession::HandleMovementOpcodes with some new information on how ↵maximius
vehicles behave, and do a little bit of cleanup. --HG-- branch : trunk
2009-11-01*Cleanup, fix many cases of unoptimized loops, potential crashes, ↵maximius
excessively large data types, unnecessary or wrong casts, non-standardized function calls, and so on.. *Proper Maexxna Web Spray locations (old locations sent players flying into the air) --HG-- branch : trunk
2009-10-28*More precise method for determining whether or not a seat is occupied ↵maximius
(disregarding object size). --HG-- branch : trunk
2009-10-28*Implement new LootMode system, and add some basic support in ↵maximius
boss_sartharion.cpp. Requires database support. --HG-- branch : trunk
2009-10-28*One player per slot on bench/chair, original patch by Trojan for TC1.maximius
--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-10-06* Fix bug that caused a 100% chance to increase fishing skill on fishing ↵Machiavelli
regardless of area. --HG-- branch : trunk
2009-10-06* Allow players to get fishing skillups from fishing in any area, no more ↵Machiavelli
"your fish got away" message. However still need core support to manipulate fishing loot based on fishing skill. --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-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-04Fix some issues with game object create according to last patch. Thx to ↵Kudlaty
NoFantasy and DearScorpion --HG-- branch : trunk