Fix build on windows.
Fix command ticket viewname - thx Deadlyskunk for point this fix setlink command group, add missing commands to db - patch by XTElite1 --HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -373,6 +373,7 @@ ChatCommand * ChatHandler::getCommandTable()
|
||||
{ "tame", SEC_GAMEMASTER, false, &ChatHandler::HandleNpcTameCommand, "", NULL },
|
||||
{ "setdeathstate", SEC_GAMEMASTER, false, &ChatHandler::HandleNpcSetDeathStateCommand, "", NULL },
|
||||
{ "addformation", SEC_MODERATOR, false, &ChatHandler::HandleNpcAddFormationCommand, "", NULL },
|
||||
{ "setlink", SEC_MODERATOR, false, &ChatHandler::HandleNpcSetLinkCommand, "", NULL },
|
||||
|
||||
//{ TODO: fix or remove this commands
|
||||
{ "addweapon", SEC_ADMINISTRATOR, false, &ChatHandler::HandleNpcAddWeaponCommand, "", NULL },
|
||||
@@ -547,7 +548,6 @@ ChatCommand * ChatHandler::getCommandTable()
|
||||
{
|
||||
{ "cancel", SEC_ADMINISTRATOR, true, &ChatHandler::HandleServerShutDownCancelCommand,"", NULL },
|
||||
{ "" , SEC_ADMINISTRATOR, true, &ChatHandler::HandleServerShutDownCommand, "", NULL },
|
||||
{ "setlink", SEC_MODERATOR, false, &ChatHandler::HandleNpcSetLinkCommand, "", NULL },
|
||||
{ NULL, 0, false, NULL, "", NULL }
|
||||
};
|
||||
|
||||
|
||||
+4
-1
@@ -400,7 +400,10 @@ bool ChatHandler::HandleGMTicketGetByNameCommand(const char* args)
|
||||
if(!*args)
|
||||
return false;
|
||||
|
||||
Player *plr = objmgr.GetPlayer(args);
|
||||
std::string name = (char*)args;
|
||||
normalizePlayerName(name);
|
||||
|
||||
Player *plr = objmgr.GetPlayer(name.c_str());
|
||||
if(!plr)
|
||||
{
|
||||
SendSysMessage(LANG_NO_PLAYERS_FOUND);
|
||||
|
||||
@@ -255,7 +255,7 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, in
|
||||
if(incremental)
|
||||
{
|
||||
// int32 *= float cause one point loss?
|
||||
standing = roundf( (float)standing * sWorld.getRate(RATE_REPUTATION_GAIN) );
|
||||
standing = floor( (float)standing * sWorld.getRate(RATE_REPUTATION_GAIN) + 0.5 );
|
||||
standing += itr->second.Standing + BaseRep;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#include "Language.h"
|
||||
#include "DBCStructure.h"
|
||||
#include <map>
|
||||
#include <math.h>
|
||||
|
||||
static uint32 ReputationRankStrIndex[MAX_REPUTATION_RANK] =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user