Whitespace is the root of all evil (version 2)

This commit is contained in:
Nay
2012-08-03 22:55:18 +01:00
parent f9a0821b2b
commit d1b10082a2
18 changed files with 82 additions and 82 deletions
+2 -2
View File
@@ -182,7 +182,7 @@ extern int main(int argc, char **argv)
else
sLog->outError(LOG_FILTER_AUTHSERVER, "Can't set used processors (hex): %x", curAff);
}
}
bool Prio = ConfigMgr::GetBoolDefault("ProcessPriority", false);
@@ -193,7 +193,7 @@ extern int main(int argc, char **argv)
sLog->outInfo(LOG_FILTER_AUTHSERVER, "The auth server process priority class has been set to HIGH");
else
sLog->outError(LOG_FILTER_AUTHSERVER, "Can't set auth server process priority class.");
}
}
#endif
+1 -1
View File
@@ -229,7 +229,7 @@ LoginDatabase.WorkerThreads = 1
# Default: 0 - Default. Each type that has no config will
# rely on this one. Core will create this logger
# (disabled) if it's not configured
# 7 - Network input/output,
# 7 - Network input/output,
# 30 - Authserver
#
# Logger.name.Level
@@ -84,7 +84,7 @@ void LoadGameObjectModelList()
fclose(model_list_file);
sLog->outInfo(LOG_FILTER_GENERAL, ">> Loaded %u GameObject models in %u ms", uint32(model_list.size()), GetMSTimeDiffToNow(oldMSTime));
}
GameObjectModel::~GameObjectModel()
+1 -1
View File
@@ -33,7 +33,7 @@ public:
ChatCommand* GetCommands() const
{
static ChatCommand castCommandTable[] =
{
{
{ "back", SEC_ADMINISTRATOR, false, &HandleCastBackCommand, "", NULL },
{ "dist", SEC_ADMINISTRATOR, false, &HandleCastDistCommand, "", NULL },
{ "self", SEC_ADMINISTRATOR, false, &HandleCastSelfCommand, "", NULL },
+5 -5
View File
@@ -70,7 +70,7 @@ public:
{ "levelup", SEC_ADMINISTRATOR, false, &HandleLevelUpCommand, "", NULL },
{ "pdump", SEC_ADMINISTRATOR, true, NULL, "", pdumpCommandTable },
{ NULL, 0, false, NULL, "", NULL }
};
};
return commandTable;
}
@@ -112,14 +112,14 @@ public:
if (!normalizePlayerName(searchString))
return false;
stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_CHAR_DEL_INFO_BY_NAME);
stmt->setString(0, searchString);
stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_CHAR_DEL_INFO_BY_NAME);
stmt->setString(0, searchString);
result = CharacterDatabase.Query(stmt);
}
}
else
{
stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_CHAR_DEL_INFO);
stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_CHAR_DEL_INFO);
result = CharacterDatabase.Query(stmt);
}
@@ -137,7 +137,7 @@ public:
// account name will be empty for not existed account
AccountMgr::GetName(info.accountId, info.accountName);
info.deleteDate = time_t(fields[3].GetUInt32());
info.deleteDate = time_t(fields[3].GetUInt32());
foundList.push_back(info);
}
while (result->NextRow());
+36 -36
View File
@@ -14,27 +14,27 @@
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* ScriptData
Name: disable_commandscript
%Complete: 100
Comment: All disable related commands
Category: commandscripts
EndScriptData */
#include "ScriptMgr.h"
#include "ObjectMgr.h"
#include "Chat.h"
#include "DisableMgr.h"
class disable_commandscript : public CommandScript
{
public:
disable_commandscript() : CommandScript("disable_commandscript") { }
ChatCommand* GetCommands() const
{
static ChatCommand disableCommandTable[] =
{
{ "spell", SEC_GAMEMASTER, false, &HandleDisableSpellCommand, "", NULL },
@@ -45,7 +45,7 @@ public:
{ "vmap", SEC_GAMEMASTER, false, &HandleDisableVmapCommand, "", NULL },
{ NULL, 0, false, NULL, "", NULL }
};
static ChatCommand commandTable[] =
{
{ "disable", SEC_GAMEMASTER, false, NULL, "", disableCommandTable },
@@ -53,8 +53,8 @@ public:
};
return commandTable;
}
static void HandleDisables(ChatHandler* handler, char const* args, uint8 disableType)
{
char* cEntry = strtok((char*)args, " ");
@@ -63,30 +63,30 @@ public:
handler->SendSysMessage("No entry specified.");
return;
}
char* cFlags = strtok(NULL, " ");
if (!cFlags || !atoi(cFlags))
{
handler->SendSysMessage("No flags specified.");
return;
}
char* cComment = strtok(NULL, "");
if (!cComment)
{
handler->SendSysMessage("No comment specified.");
return;
}
std::string entryStr = cEntry;
std::string disableComment = cComment;
uint32 entry = (uint32)atoi(cEntry);
uint8 flags = atoi(cFlags);
std::string disableTypeStr = "";
switch (disableType)
{
case DISABLE_TYPE_SPELL:
@@ -108,87 +108,87 @@ public:
disableTypeStr = "vmap";
break;
}
PreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_DISABLES);
stmt->setUInt32(0, entry);
stmt->setUInt8(1, disableType);
stmt->setUInt8(1, disableType);
PreparedQueryResult result = WorldDatabase.Query(stmt);
if (result)
{
handler->PSendSysMessage("This %s (id %u) is already disabled.", disableTypeStr.c_str(), entry);
return;
}
PreparedStatement* stmt2 = WorldDatabase.GetPreparedStatement(WORLD_INS_DISABLES);
stmt2->setUInt32(0, entry);
stmt2->setUInt8(1, disableType);
stmt2->setUInt16(2, flags);
stmt2->setString(3, disableComment);
WorldDatabase.Execute(stmt2);
handler->PSendSysMessage("Disabled %s %u for reason %s", disableTypeStr.c_str(), entry, disableComment.c_str());
return;
}
static bool HandleDisableSpellCommand(ChatHandler* handler, char const* args)
{
if (!*args)
return false;
HandleDisables(handler, args, DISABLE_TYPE_SPELL);
return true;
}
static bool HandleDisableMapCommand(ChatHandler* handler, char const* args)
{
if (!*args)
return false;
HandleDisables(handler, args, DISABLE_TYPE_MAP);
return true;
}
static bool HandleDisableBattlegroundCommand(ChatHandler* handler, char const* args)
{
if (!*args)
return false;
HandleDisables(handler, args, DISABLE_TYPE_BATTLEGROUND);
return true;
}
static bool HandleDisableAchievementCriteriaCommand(ChatHandler* handler, char const* args)
{
if (!*args)
return false;
HandleDisables(handler, args, DISABLE_TYPE_ACHIEVEMENT_CRITERIA);
return true;
}
static bool HandleDisableOutdoorPvPCommand(ChatHandler* handler, char const* args)
{
if (!*args)
return false;
HandleDisables(handler, args, DISABLE_TYPE_OUTDOORPVP);
return true;
}
static bool HandleDisableVmapCommand(ChatHandler* handler, char const* args)
{
if (!*args)
return false;
HandleDisables(handler, args, DISABLE_TYPE_VMAP);
return true;
}
};
void AddSC_disable_commandscript()
{
new disable_commandscript();
+1 -1
View File
@@ -51,7 +51,7 @@ public:
};
return commandTable;
}
/** \brief GM command level 3 - Create a guild.
*
* This command allows a GM (level 3) to create a guild.
+4 -4
View File
@@ -222,7 +222,7 @@ public:
return true;
}
static bool HandleLookupEventCommand(ChatHandler* handler, char const* args)
{
if (!*args)
@@ -660,7 +660,7 @@ public:
{
QuestStatus status = target->GetQuestStatus(qInfo->GetQuestId());
switch (status)
switch (status)
{
case QUEST_STATUS_COMPLETE:
statusStr = handler->GetTrinityString(LANG_COMMAND_QUEST_COMPLETE);
@@ -708,7 +708,7 @@ public:
{
QuestStatus status = target->GetQuestStatus(qInfo->GetQuestId());
switch (status)
switch (status)
{
case QUEST_STATUS_COMPLETE:
statusStr = handler->GetTrinityString(LANG_COMMAND_QUEST_COMPLETE);
@@ -1315,7 +1315,7 @@ public:
static bool HandleLookupPlayerEmailCommand(ChatHandler* handler, char const* args)
{
if (!*args)
return false;
return false;
std::string email = strtok((char*)args, " ");
char* limitStr = strtok(NULL, " ");
+1 -1
View File
@@ -82,7 +82,7 @@ public:
return true;
}
static bool HandleResetStatsOrLevelHelper(Player* player)
{
ChrClassesEntry const* classEntry = sChrClassesStore.LookupEntry(player->getClass());
@@ -219,25 +219,25 @@ public:
{
switch (identifier)
{
case DATA_SELIN:
case DATA_SELIN:
return SelinGUID;
case DATA_DELRISSA:
case DATA_DELRISSA:
return DelrissaGUID;
case DATA_VEXALLUS_DOOR:
case DATA_VEXALLUS_DOOR:
return VexallusDoorGUID;
case DATA_SELIN_DOOR:
case DATA_SELIN_DOOR:
return SelinDoorGUID;
case DATA_SELIN_ENCOUNTER_DOOR:
case DATA_SELIN_ENCOUNTER_DOOR:
return SelinEncounterDoorGUID;
case DATA_DELRISSA_DOOR:
case DATA_DELRISSA_DOOR:
return DelrissaDoorGUID;
case DATA_KAEL_DOOR:
case DATA_KAEL_DOOR:
return KaelDoorGUID;
case DATA_KAEL_STATUE_LEFT:
case DATA_KAEL_STATUE_LEFT:
return KaelStatue[0];
case DATA_KAEL_STATUE_RIGHT:
case DATA_KAEL_STATUE_RIGHT:
return KaelStatue[1];
case DATA_ESCAPE_ORB:
case DATA_ESCAPE_ORB:
return EscapeOrbGUID;
case DATA_FEL_CRYSTAL:
@@ -175,13 +175,13 @@ public:
if (me->GetDistance(victim) > 10.0f)
DoCast(victim, SPELL_MULTI_SHOT);
} else FadeTimer -= diff;
if (SummonSkeletonTimer <= diff)
{
DoCast(me, SPELL_SUMMON_SKELETON);
SummonSkeletonTimer = 20000 + rand()%10000;
} else SummonSkeletonTimer -= diff;
if (BlackArrowTimer <= diff)
{
if (Unit* victim = me->getVictim())
@@ -190,7 +190,7 @@ public:
BlackArrowTimer = 15000 + rand()%5000;
}
} else BlackArrowTimer -= diff;
if (ShotTimer <= diff)
{
if (Unit* victim = me->getVictim())
@@ -199,7 +199,7 @@ public:
ShotTimer = 8000 + rand()%2000;
}
} else ShotTimer -= diff;
if (MultiShotTimer <= diff)
{
if (Unit* victim = me->getVictim())
@@ -207,7 +207,7 @@ public:
DoCast(victim, SPELL_MULTI_SHOT);
MultiShotTimer = 10000 + rand()%3000;
}
} else MultiShotTimer -= diff;
} else MultiShotTimer -= diff;
DoMeleeAttackIfReady();
}
@@ -38,7 +38,7 @@ enum Spells
SPELL_BANSHEE_CURSE = 31651,
SPELL_BANSHEE_WAIL = 38183,
SPELL_ANTI_MAGIC_SHELL = 31662,
SPELL_WEB = 28991,
SPELL_WEB = 28991,
SPELL_MANA_BURN = 31729,
SPELL_FROST_BREATH = 31688,
SPELL_GARGOYLE_STRIKE = 31664,
+1 -1
View File
@@ -174,7 +174,7 @@ enum RuulSnowhoof
NPC_THISTLEFUR_URSA = 3921,
NPC_THISTLEFUR_TOTEMIC = 3922,
NPC_THISTLEFUR_PATHFINDER = 3926,
QUEST_FREEDOM_TO_RUUL = 6482,
GO_CAGE = 178147
+3 -3
View File
@@ -182,9 +182,9 @@ public:
enum RizzleSprysprocketData
{
QUEST_CHASING_THE_MOONSTONE = 10994,
MOB_DEPTH_CHARGE = 23025,
SPELL_RIZZLE_BLACKJACK = 39865,
SPELL_RIZZLE_ESCAPE = 39871,
SPELL_RIZZLE_FROST_GRENADE = 40525,
@@ -490,7 +490,7 @@ public:
{
if (WeMustDieTimer <= diff)
me->DespawnOrUnsummon();
else
else
WeMustDieTimer -= diff;
}
return;
@@ -549,7 +549,7 @@ public:
(*itr)->Respawn();
}
}
else
else
sLog->outError(LOG_FILTER_TSCR, "SD2 ERROR: FlagList is empty!");
}
@@ -560,7 +560,7 @@ public:
if (EventStarted)
SayTimer = NextStep(Step++);
}
else
else
SayTimer -= diff;
}
};
+2 -2
View File
@@ -40,10 +40,10 @@ EndContentData */
enum RiverbreezeAndSilversky
{
SPELL_CENARION_BEACON = 15120,
NPC_ARATHANDRIS_SILVERSKY = 9528,
NPC_MAYBESS_RIVERBREEZE = 9529,
QUEST_CLEASING_FELWOOD_A = 4101,
QUEST_CLEASING_FELWOOD_H = 4102
};
@@ -200,7 +200,7 @@ public:
JustCreated = false;
} else CanAttack = true;
for (uint8 i = 0; i < 4; ++i)
if (Unit* remo = Unit::GetUnit(*me, ShieldGeneratorChannel[i]))
remo->setDeathState(JUST_DIED);
@@ -354,7 +354,7 @@ public:
// Static Charge
// Used on random people (only 1 person at any given time) in Phases 1 and 3, it's a debuff doing 2775 to 3225 Nature damage to the target and everybody in about 5 yards around it, every 1 seconds for 30 seconds. It can be removed by Cloak of Shadows, Iceblock, Divine Shield, etc, but not by Cleanse or Dispel Magic.
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 200, true);
if (target && !target->HasAura(SPELL_STATIC_CHARGE_TRIGGER))
if (target && !target->HasAura(SPELL_STATIC_CHARGE_TRIGGER))
DoCast(target, SPELL_STATIC_CHARGE_TRIGGER); // cast Static Charge every 2 seconds for 20 seconds
StaticChargeTimer = 10000+rand()%20000;
+4 -4
View File
@@ -1177,7 +1177,7 @@ Warden.ClientCheckHoldOff = 30
#
# Warden.ClientCheckFailAction
# Description: Default action being taken if a client check failed. Actions can be
# overwritten for each single check via warden_action table in characters
# overwritten for each single check via warden_action table in characters
# database.
# Default: 0 - (Disabled, Logging only)
# 1 - (Kick)
@@ -1940,9 +1940,9 @@ Rate.MoveSpeed = 1
#
# Rate.InstanceResetTime
# Description: Multiplier for the rate between global raid/heroic instance resets
# (dbc value). Higher value increases the time between resets,
# lower value lowers the time, you need clean instance_reset in
# Description: Multiplier for the rate between global raid/heroic instance resets
# (dbc value). Higher value increases the time between resets,
# lower value lowers the time, you need clean instance_reset in
# characters db in order to let new values work.
# Default: 1