Core: header cleanup, split realmlist, boost compatibility, cotire, remove stormlib/zlib and stormlib/bzip2 and instead use dep sources
This commit is contained in:
1 parent
7fff6c424f
commit
5ff847159c
1243 files changed
+29780
-36517
No files matched your search
@@ -15,12 +15,17 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "Chat.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "Item.h"
|
||||
#include "Language.h"
|
||||
#include "Mail.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "Pet.h"
|
||||
#include "Player.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "RBAC.h"
|
||||
#include "WorldSession.h"
|
||||
|
||||
class send_commandscript : public CommandScript
|
||||
{
|
||||
@@ -39,7 +44,7 @@ public:
|
||||
|
||||
static std::vector<ChatCommand> commandTable =
|
||||
{
|
||||
{ "send", rbac::RBAC_PERM_COMMAND_SEND, false, NULL, "", sendCommandTable },
|
||||
{ "send", rbac::RBAC_PERM_COMMAND_SEND, false, nullptr, "", sendCommandTable },
|
||||
};
|
||||
return commandTable;
|
||||
}
|
||||
@@ -54,7 +59,7 @@ public:
|
||||
if (!handler->extractPlayerTarget((char*)args, &target, &targetGuid, &targetName))
|
||||
return false;
|
||||
|
||||
char* tail1 = strtok(NULL, "");
|
||||
char* tail1 = strtok(nullptr, "");
|
||||
if (!tail1)
|
||||
return false;
|
||||
|
||||
@@ -62,7 +67,7 @@ public:
|
||||
if (!msgSubject)
|
||||
return false;
|
||||
|
||||
char* tail2 = strtok(NULL, "");
|
||||
char* tail2 = strtok(nullptr, "");
|
||||
if (!tail2)
|
||||
return false;
|
||||
|
||||
@@ -99,7 +104,7 @@ public:
|
||||
if (!handler->extractPlayerTarget((char*)args, &receiver, &receiverGuid, &receiverName))
|
||||
return false;
|
||||
|
||||
char* tail1 = strtok(NULL, "");
|
||||
char* tail1 = strtok(nullptr, "");
|
||||
if (!tail1)
|
||||
return false;
|
||||
|
||||
@@ -107,7 +112,7 @@ public:
|
||||
if (!msgSubject)
|
||||
return false;
|
||||
|
||||
char* tail2 = strtok(NULL, "");
|
||||
char* tail2 = strtok(nullptr, "");
|
||||
if (!tail2)
|
||||
return false;
|
||||
|
||||
@@ -125,17 +130,17 @@ public:
|
||||
ItemPairs items;
|
||||
|
||||
// get all tail string
|
||||
char* tail = strtok(NULL, "");
|
||||
char* tail = strtok(nullptr, "");
|
||||
|
||||
// get from tail next item str
|
||||
while (char* itemStr = strtok(tail, " "))
|
||||
{
|
||||
// and get new tail
|
||||
tail = strtok(NULL, "");
|
||||
tail = strtok(nullptr, "");
|
||||
|
||||
// parse item str
|
||||
char const* itemIdStr = strtok(itemStr, ":");
|
||||
char const* itemCountStr = strtok(NULL, " ");
|
||||
char const* itemCountStr = strtok(nullptr, " ");
|
||||
|
||||
uint32 itemId = atoi(itemIdStr);
|
||||
if (!itemId)
|
||||
@@ -208,7 +213,7 @@ public:
|
||||
if (!handler->extractPlayerTarget((char*)args, &receiver, &receiverGuid, &receiverName))
|
||||
return false;
|
||||
|
||||
char* tail1 = strtok(NULL, "");
|
||||
char* tail1 = strtok(nullptr, "");
|
||||
if (!tail1)
|
||||
return false;
|
||||
|
||||
@@ -216,7 +221,7 @@ public:
|
||||
if (!msgSubject)
|
||||
return false;
|
||||
|
||||
char* tail2 = strtok(NULL, "");
|
||||
char* tail2 = strtok(nullptr, "");
|
||||
if (!tail2)
|
||||
return false;
|
||||
|
||||
@@ -224,7 +229,7 @@ public:
|
||||
if (!msgText)
|
||||
return false;
|
||||
|
||||
char* moneyStr = strtok(NULL, "");
|
||||
char* moneyStr = strtok(nullptr, "");
|
||||
int32 money = moneyStr ? atoi(moneyStr) : 0;
|
||||
if (money <= 0)
|
||||
return false;
|
||||
@@ -256,7 +261,7 @@ public:
|
||||
if (!handler->extractPlayerTarget((char*)args, &player))
|
||||
return false;
|
||||
|
||||
char* msgStr = strtok(NULL, "");
|
||||
char* msgStr = strtok(nullptr, "");
|
||||
if (!msgStr)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user