Commit Graph

119 Commits

Author SHA1 Message Date
Subv2112 aaa255b83d Core/SAI: Implemented SMART_EVENT_GO_STATE_CHANGED and SMART_ACTION_GO_SET_LOOT_STATE
Signed-off-by: Subv2112 <s.v.h21@hotmail.com>
2012-01-06 11:09:01 -05:00
kiper 8299627ed9 Update headers for 2012. HAPPY NEW YEAR!!! 2012-01-01 00:32:13 +01:00
leak e646dbb3cd Core/DBLayer: Convert PExecute() queries to prepared statements No. 2 2011-12-27 00:29:48 +01:00
megamage 8cf2062c1f Update grid system. Try to fix some crashes and transport passengers (now they are despawned after a while). 2011-12-20 17:07:09 -05:00
megamage 529af3cd09 Delete obj if it is not successfully added to grid. More to fix. 2011-11-28 14:05:25 -05:00
megamage 1b8d9ec7b4 Clean up summon/remove gameobject code. 2011-10-31 10:46:39 -04:00
kaelima be0b2fcf97 Core/Grid:
- Simplified CellArea calculation (Original author: SilverIce)

- Removed unused code in Cell class (Original author: SilverIce)

- Improve some Visit functions.
2011-10-19 17:40:44 +01:00
megamage c29ff41001 Rename some classes in grid system.
Note: The naming of classes is still confusing. "cell" usually refers to class "Grid", and "grid" usually refers to class "NGrid". But it requires a lot of changes to clean this up.
2011-10-18 10:53:34 -04:00
Spp bc023c6dfb Core: Fix some warnings 2011-10-18 12:39:01 +02:00
Spp be34ae68bb Core/GameObject: Fixed memory leak in GameObject AI handling 2011-10-18 09:51:55 +02:00
Spp 8a448c5d91 Core/GameObject: Fix compile warning (Note: bg->GetTypeID(true) will always return the Bg type being played, never Random) 2011-10-18 09:48:11 +02:00
megamage bcc55489f8 More cleanup of CanSeeOrDetect 2011-10-13 14:02:07 -04:00
megamage 5912e2444d Some cleanup of CanSeeOrDetect code. 2011-10-13 13:26:27 -04:00
megamage 3ba22d0d06 Rename Map::Add to Map::AddToMap, Map::Remove to Map::RemoveFromMap for better management. 2011-10-10 17:39:34 -04:00
Machiavelli 40ed37c1e7 Core/GameObects: Fix a crash in GameObject::Delete 2011-10-08 15:06:31 +02:00
Machiavelli 680fce6fd8 Core/GameObjects: Fix infinite respawning of chest gameobjects that are summoned trough spells with ie. SPELL_EFFECT_SUMMON_OBJECT_WILD
Closes #1618
Closes #2486
2011-10-08 13:17:43 +02:00
Bootz 5b4c7783c2 REPO: Code-style clean-ups
* Fixed pMap->map
* Fixed pInstance->instance
* Fixed pInsta->instance
* Fixed pQuest->quest
* Fixed pWho->who
* Fixed pTarget->target
* Fixed pGo->go

~DEVNOTES: Handlers/QuestHandler.cpp still needs to be cleaned...
2011-10-07 19:45:43 -05:00
Shocker 7f89678bcd Merge pull request #3278 from lost-illusion/master
CleanUp
2011-10-07 09:28:10 -07:00
Shocker b789cc63a7 Merge pull request #3385 from stfx/patch-1
Fix sending custom gameobject animation of a few gameobjects
2011-10-07 09:25:50 -07:00
stfx 9a7805fd88 Fix sending custom gameobject animation of gameobjects which have a time_to_restore = 0 2011-10-07 12:05:31 +03:00
Sebastián Orellana 2be0207c1d Core/GameObjects: DestructibleGameObjects only have display info in intact state 2011-10-04 20:14:30 -03:00
unknown 8acf07dbab Random minor code cleanup 2011-09-29 22:35:00 +04:00
Spp b16d2245bb Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces

Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
Spp cc06c41887 Core: Move FormationMgr to namespace
Also...
- Warning fixes
- Make Singleton constructors private
2011-09-28 11:11:38 +02:00
Shauren a644e0d951 Core/Entities: GameObject's m_unique_users will now store full guids to get rid of silly casts 2011-09-17 13:20:21 +02:00
Shocker 7afb179185 Misc/Util: Add a template function for returning a random element from any container 2011-09-15 21:28:40 +03:00
Nay 791acfebac Core/Spells&GOs: Fix Ritual of Doom.
Thanks QAston and Shocker for helping.
Closes #2535
2011-09-15 17:52:35 +01:00
Spp af05915b9e [Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions) 2011-09-15 14:12:57 +02:00
kaelima e67a33eaaa Revert "Core/GameObjects: Fix possible crash in GameObject::SetDestructibleState."
This reverts commit 85c7a916a0.

Ty Shauren.
2011-09-07 15:11:12 +02:00
VladimirMangos 5823b0379b Core/Loot:
- SMSG_LOOT_MONEY_NOTIFY is sent after SMSG_LOOT_CLEAR_MONEY.
- Fixed chat message displayed when looting gold with > 1 member in group.
2011-09-07 00:04:27 +02:00
kaelima 85c7a916a0 Core/GameObjects: Fix possible crash in GameObject::SetDestructibleState. 2011-09-06 23:56:55 +02:00
cyberbrest 5708bc8b1e Core/Spells: Set summoner guid for GO cast triggers to allow proper hostility checks on cast 2011-08-29 23:49:46 +02:00
Lopin f94bd733e3 Core/GameObject: Fixed build on Linux 2011-08-19 21:09:12 +02:00
Lopin 8166e338ad Core/Logs: Added some useful informations to certain logs, part #1. Requested by Aokromes 2011-08-19 19:17:39 +02:00
Machiavelli 826ec0582a Core/GameObject: Fix GameObject::Use log error message 2011-08-15 15:41:06 +02:00
Spp- e47b96af3e Core: Append single character to stream as character, not as a string 2011-07-29 14:18:28 +02:00
Shauren b9a6e2333c Core/Spells: Removed implicit casts from SpellImplicitTargetInfo, fixed copypaste mistakes and one crash 2011-07-27 12:35:59 +02:00
Spp- b2a84d9f1e Core/ObjectMgr: Remove GetPlayer function (Remove double use of singletons) 2011-07-27 12:14:27 +02:00
QAston b0fe236265 Core: Use new SpellInfo class in core. Sadly, this commit is not compatibile with some of the custom code. To make your code work again you may need to change:
*SpellEntry is now SpellInfo
*GetSpellProto is now GetSpellInfo
*SpellEntry::Effect*[effIndex] is now avalible under SpellInfo.Effects[effIndex].*
*sSpellStore.LookupEntry is no longer valid, use sSpellMgr->GetSpellInfo()
*SpellFunctions from SpellMgr.h like DoSpellStuff(spellId) are now: spellInfo->DoStuff()
*SpellMgr::CalculateEffectValue and similar functions are now avalible in SpellEffectInfo class.
*GET_SPELL macro is removed, code which used it is moved to SpellMgr::LoadDbcDataCorrections
*code which affected dbc data in SpellMgr::LoadSpellCustomAttr is now moved to LoadDbcDataCorrections
2011-07-26 23:09:28 +02:00
Shauren 16a1435a0b Core/GameObjects: Prevent repeating damage/destruction events when the gameobject is already in that state 2011-07-24 23:55:14 +02:00
Shauren ba4c4d8943 Core/GameObject: Added missed change to destructible health setting 2011-07-22 21:42:17 +02:00
Shauren 74e2d981ac Core/GameObject: Refactored destructible building handling, properly implemented spell effect repair 2011-07-22 21:22:05 +02:00
Spp- bb921ae78c Core: Do not use STL container size method to check if container is empty 2011-07-01 14:58:44 +02:00
kaelima 142943d4c1 This reverts commit f580cddc09. 2011-06-28 13:05:15 +02:00
click f580cddc09 Core: Add wintergrasp-patch to wintergrasp_cleanup branch - resurrected from an old work-repository, now over as a branch to work on.
Original patch by socolin, cand a ton of contributors :
mathman, joda, spp, silinoron, josh, malcrom, shauren, machiavelli, click, rat, leak, tobmaps, _manuel_, the tcfr team (via socolin), and tons of others for chiming in.

NOTE: THIS IS A WORKING-BRANCH, AND _NOT_ MENT FOR PUBLIC USE OR EVEN CONSIDERED STABLE!
2011-06-28 00:56:29 +02:00
click 8fc13f508f Core/Logs: Remove some excessive log-information regarding non-existing gameobjects. Removes angle and rotation-info, as it's useless. 2011-06-27 19:37:15 +02:00
Shocker c8233a543d Core/Logs: Small improvement to gameobject-use error log to include player/object name and entry 2011-06-16 00:33:30 +03:00
kaelima b9e8694540 Core: Continued cleanup
If and for whitespaces.
2011-06-12 02:30:32 +02:00
click 158966dc79 Core: Codestyle cleanup 2011-06-11 22:35:29 +02:00
Shauren a28da3582e Core/Objects: Fixed linked respawn cases when linking to itself in order to prevent respawning 2011-05-16 15:36:02 +02:00