Commit Graph
162 Commits
Author SHA1 Message Date
megamage 7231ab959f Clean up grid system. Get rid of GridLoader. This patch should not change any logic, except the incorrect calculation of the number of loaded corpse (which only affects log). 2011-10-18 14:31:34 -04:00
megamage ffdfd9252b More clean up of grid system. 2011-10-18 11:51:30 -04:00
megamage e27ef59548 Clean up grid system: allow directly creating Cell from x, y. 2011-10-18 11:18:49 -04:00
megamage e0d933fed8 Use method IsCoordValid() to replace explicit checks. 2011-10-18 11:05:32 -04: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 805e14a463 Core/Grid: Replaced ambiguous operator overloads with functions (Makes it clear to read) 2011-10-18 11:42:40 +02: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
megamage 76c9c30c2b Merge pull request #3399 from megamage/master
Fix the relocation of creatures across cells. Try to fix #3054.
2011-10-10 13:12:15 -07:00
Machiavelli 82dbe7bc17 Core: Fix some build errors after code style cleanup 2011-10-08 13:20:04 +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
megamage eb8cbae0d5 Fix the relocation of creatures across cells. Try to fix #3054. 2011-10-07 17:36:23 -04:00
Bootz 96d7a1e970 REPO: code-style clean-up
* Fixed pGuild->guild
* Fixed pGroup->group
* Fixed pOwner->owner
2011-10-07 10:54:53 -05: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 9e517c963b Cosmetic: Replace "* )" with "*)" and "* /*" with "* /*" 2011-09-29 09:32:55 +02:00
megamage eb946691c7 Unlink Battleground and BattlegroundMap when one of them is deleted. Fix crash #3239. 2011-09-27 17:26:13 -04:00
Spp bf38cd8f3e Tab2spaces previous commit :S 2011-09-16 21:56:29 +02:00
Spp d0f9406a10 Core/Instances: Resurrect a dead player (with corpse) before enter to instance. Original patch by Den 2011-09-16 21:54:45 +02:00
megamage bd4cf4b78b Store pendingInstanceId instead of pointer of instance save, because pointer may become invalid. Fix #2987. 2011-09-15 22:04:51 +02:00
Spp af05915b9e [Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions) 2011-09-15 14:12:57 +02:00
megamage 76488854d8 A more conservative way to fix crash #2892. 2011-09-13 11:54:55 -04:00
megamage 2dbf64827a Do not call AddObjectToRemoveList(Pet*) in Map::MoveAllCreaturesInMoveList(). Fix #2892. 2011-09-12 11:44:32 -04:00
Shauren f13f32c972 Core/Achievements: Award normal mode achievements when instance was done on heroic mode 2011-09-05 15:21:37 +02:00
QAston e2d8faea09 Core/Spells: move Cannibalize and Carrion Feeder cast checks to SpellScripts. 2011-08-20 00:30:38 +02:00
Lopin dad2fc78e2 Core/Logs: Added Difficulty output to InstanceMap::SetResetSchedule error message. Requested by Aokromes 2011-08-19 10:47:56 +02:00
Lopin 8ae5750c15 Core/Maps: Changed InstanceSave error message to show also Name & GUID of player and Entry & Name & InstanceId of instance map 2011-08-16 15:42:32 +02:00
Shauren 8e2a32906d Core/Gridmonster: Increased upper value for search radius to size of grid 2011-08-08 13:16:03 +02:00
Spp 4ecda557e4 Core/Battleground: Some (minor) code optimizations
- All access to Battleground vars are done using funtions (Remove friendship from Battleground and BattlegroundMgr)
- Move specific 47 mins arena check to battleground code as its generic to all arenas
- Create PreUpdateImpl and PostUpdateImpl functions. Specific battlegrounds will implement those if needed (No more need of call Battleground::Update inside specific BGs)
- Modify Create function to use only one parameter
- Remove EventPlayerCapturedFlag from Battleground class, only one BG implements it and it's not used outside that BG.
2011-08-05 11:57:09 +02:00
LihO 3fbb657e3b Core/Maps : Crash fix
Closes #1489
2011-08-04 19:41:11 +02:00
Spp- acd0fc79f6 Core: Pass by const reference for simple objects replaced with pass by value 2011-08-01 14:23:27 +02:00
Spp- fa50c0a464 Fix some warnings here and there 2011-07-27 11:00:39 +02:00
tobmaps 55b0e550b9 Core/Spells: Properly fix Ignite 2011-07-24 19:37:57 +07:00
Shauren 7303adf1eb Core/Scripts: Merged ZoneScript::ProcessEvent methods into one accepting WorldObject* parameter 2011-07-22 21:52:53 +02:00
Shocker 9e58c6e753 Core/Maps: Allow multi-threaded updates for all instances of a map, should increase performance 2011-06-28 23:19:54 +03:00
kaelima b9e8694540 Core: Continued cleanup
If and for whitespaces.
2011-06-12 02:30:32 +02:00
click c77aa6e846 Core: And some more cleanups... 2011-06-12 02:00:43 +02:00
click f16df538ee Core: More codestyle cleanups 2011-06-12 01:47:45 +02:00
click 158966dc79 Core: Codestyle cleanup 2011-06-11 22:35:29 +02:00
Shauren ac4ed1efdf Core/Spells: Moved setting UNIT_CREATED_BY_SPELL out of spell effect handlers and sending SMSG_TOTEM_CREATED into Totem class 2011-05-19 22:27:18 +02:00
Shauren 49a81557fa Core/Units: Fixed totem timer UI
Closes #298
Closes #1595
2011-05-19 18:50:57 +02:00
Shauren c98438ae8f Core: Minor cleanup 2011-05-12 10:43:11 +02:00
leak 1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
leak 5aeb4fe794 Core/ObjectMgr: Refactor sInstanceTemplate 2011-04-28 22:16:13 +02:00
Shauren 8898db8b27 Core: Corrected NULL usage, it should only be used with pointers, not integers 2011-04-23 15:53:48 +02:00
zergtmn 1551b8a011 Core/Misc: move scheduled scripts counter to ScriptMgr (which is more logical, isn't it?) 2011-04-13 12:07:20 +06:00
Shauren 553d8d7016 Core/Instances: Fixed crashes happening when trying to access already deleted players. 2011-04-10 21:17:46 +02:00
Shauren 1a4a618d81 Core/Scripts: Code style cleanup in ScriptedAI and BossAI 2011-03-19 10:54:16 +01:00
leak 6a4ffb4be1 Core/Battlegrounds: Free instance id in the proper place.
fixes #966
2011-03-14 20:39:05 +01:00
leak 2a34b41ce8 Core/Instances: Fix warning 2011-03-11 19:57:00 +01:00
leak 190ef1c2ef Core/Instances: Fix crash and allocation issue in instance id generation 2011-03-11 13:24:58 +01:00