megamage
5b034ee631
Revert 81fea2d7b5.
2011-11-28 14:34:30 -05:00
Shauren
638693e78f
Core: Fixed more warnings (C6246: Local declaration of 'x' hides declaration of the same name in outer scope.)
2011-11-23 17:55:16 +01:00
Bootz
d1334624da
Core: Codestyle clean-up
...
"pl"->"player"
Note: codestyle methods needs maintained, Player* player.
still to do properly clean-up chat.cpp.
2011-11-07 11:18:00 -06:00
Bootz
f75ec5ba2b
Core: Codestyle clean-up
...
"plr"->player
Note: codestyle methods needs maintained, Player* player.
2011-11-07 11:06:39 -06:00
kaelima
b5cb41b4ea
Core/Player: Make chat tag (last byte in SMSG_MESSAGECHAT) a bitmask.
2011-11-07 07:16:31 +01:00
Fredi
18183d494c
Core/Commands: Fix SQL typo in 'list item' command
2011-11-04 10:05:27 -02:00
megamage
e3fa04823d
Use TRINITY_GUARD to replace ACE_GUARD. ASSERT(false) if failed to acquire the lock.
2011-10-31 17:25:12 -04:00
Machiavelli
3a713eef7e
Merge pull request #3587 from Fredi/check
...
Core/Commands: Added security check in .damage
2011-10-23 04:16:53 -07:00
megamage
c9c5c2a355
Use read/write thread mx guard instead of general guard for HashMapHolder.
2011-10-21 17:29:09 -04:00
Fredi
a34a90ad87
Core/Commands: Added security check in .damage
2011-10-19 15:44:26 -02: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
megamage
3ba22d0d06
Rename Map::Add to Map::AddToMap, Map::Remove to Map::RemoveFromMap for better management.
2011-10-10 17:39:34 -04: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
f130ca8d0a
Merge pull request #3392 from Bizzy/Bizzy
...
Core/Commands: Added '.ticket reset' for resetting ticket-id counter. Aut
2011-10-07 09:55:03 -07:00
Bootz
f1ccb83dc0
REPO: Code-style change
...
* Fixed pUnit-unit
2011-10-07 10:48:56 -05:00
Bizzy
4112a0d087
Core/Commands: Added '.ticket reset' for resetting ticket-id counter. Author: Bizzy
2011-10-04 17:41:55 +02: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
be12603150
Configuration/ConfigMgr: converted from singleton to namespace with free functions.
2011-09-28 13:00:43 +02:00
Spp
b93067350c
Core/WeatherMgr: singleton converted to namespace with free functions. Note how RAII saves your life and removes the need in explicit delete :)
2011-09-28 11:38:56 +02:00
Spp
852ffcc139
Core/Scripting: Remove unnecesary reference in param function OnMemberRemove
2011-09-28 10:35:59 +02:00
Shauren
94e5ff6549
Core/Commands: Removed setting orientation from cast commands
2011-09-17 12:16:33 +02:00
Spp
af05915b9e
[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions)
2011-09-15 14:12:57 +02:00
Spp-
327fe7c247
Core: Define helper functions to know if an account is Player, Moderator, GM, Admin or Console
2011-09-08 15:11:55 +02:00
Spp-
eddcb8ffbf
AccountMgr singleton converted to namespace with free functions as it has no internal state
2011-09-08 10:49:58 +02:00
Nay
bbde479f4a
Core/Channels: Fix the console error "opcode CMSG_MESSAGECHAT have unprocessed tail data" and some logic problems when joining/leaving some channels (like only be able to join LFG inside a city)
2011-09-04 18:56:04 +01:00
Chaplain
bea649d045
Core: cleanup.
...
*remove some garbage
*little bit moore const func
*fix process of args in vmap3_extractor
2011-09-01 22:38:32 +03:00
Chaplain
f5a668ae8d
Core: Cleanup.
2011-08-30 23:09:39 +03:00
leak
d498a5b68f
Core/Commands: Prevent crash upon using .pinfo on characters in unknown areas
...
Closes #2784
2011-08-30 13:15:38 +02:00
Chaplain
fb27848510
Core: Clean up here and there.
...
*replase postfix iterator increment\decrement with prefix in cycles
*replase strlen(*char) != 0 with *char[0] != '\0'
*replase strlen(rStr.c_str()) with rStr.length()
2011-08-23 18:09:08 +03:00
Lopin
b92d6f3d20
Core/Commands: Added TrinityString instead of hardcoded string
2011-08-22 12:07:27 +02:00
Lopin
6e79510bc5
Core/Commands: Added output to .baninfo character <name> even when character has never been banned. Closes #2699
2011-08-22 11:22:26 +02:00
leak
d01bb754d7
Core/Commands: Remove useless file, commands were already converted to command scripts a bit ago
2011-08-14 13:07:43 +02:00
leak
af040fc18d
Core/Players: Allow players to answer gamemaster whispers even if whispers are disabled. Whitelist can be reset by .whispers off
2011-08-13 15:10:45 +02:00
leak
91a3bfe42a
Core/Commands: .pinfo improvements
...
- Allow .pinfo <guid>
- Add map/zone/subzone/phase to output
2011-08-13 13:00:38 +02:00
QAston
df87f00e73
Core/Commands: Add .cast dest #spellid #x #y #z which orders selected unit to cast a spell at selected destination.
2011-08-06 22:50:46 +02:00
Machiavelli
981e3540c8
Core/Chat: Fix a crash in .lookup spell command
2011-07-29 15:02:20 +02:00
Spp-
e47b96af3e
Core: Append single character to stream as character, not as a string
2011-07-29 14:18:28 +02:00
Azazel
c5d0c6b464
Core/Misc: cleanup npc_professions script (shouldn't the whole script go to DB?). Fix some warnings.
2011-07-29 15:25:52 +06:00
Machiavelli
0dcc229071
Core/Commands: Allow muting offline players - the mute will become effective on next player login.
2011-07-27 17:51:57 +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
Nay
9ed52dc646
Core/Commands: Update the trinity_string and cleanup the code related to .list auras command
2011-07-04 16:03:11 +01:00
Spp-
e9aa72cc7b
Cosmetic: rename function escape_string to EscapeString
2011-06-30 14:52:44 +02:00
Spp-
d12bb4a657
Core/Command: Don't parse varags for simple string in '.server info' command
2011-06-30 11:43:21 +02:00
Shocker
bdba5cd900
Core/Commands: Move .gps to command scripts and add .wpgps command, used for generating partial SQL queries for pathing
2011-06-29 16:36:54 +03:00
click
6667277a16
Core/Commands: Remove deprecated command for modifying pet training points (.pet tp) - removed in patch 3.0.2 and replaced with talentpoints (command for adjusting that already exists).
...
Closes #135 .
2011-06-26 10:35:35 +02:00
Shocker
f4203e171e
Core/Commands: Allow .save command to save targeted player for GMs
2011-06-16 00:22:09 +03:00
kaelima
b9e8694540
Core: Continued cleanup
...
If and for whitespaces.
2011-06-12 02:30:32 +02:00
click
f16df538ee
Core: More codestyle cleanups
2011-06-12 01:47:45 +02:00