From d230302b16474ff22a35243ffed6236ef4fc7fb9 Mon Sep 17 00:00:00 2001 From: Paradox Date: Mon, 9 Feb 2009 08:16:34 -0500 Subject: Replace tabs with spaces in more files. --HG-- branch : trunk --- src/bindings/scripts/ScriptMgr.cpp | 106 ++++++++++++++++++------------------- 1 file changed, 53 insertions(+), 53 deletions(-) (limited to 'src/bindings/scripts/ScriptMgr.cpp') diff --git a/src/bindings/scripts/ScriptMgr.cpp b/src/bindings/scripts/ScriptMgr.cpp index 34b43b14a92..c41a461e4d1 100644 --- a/src/bindings/scripts/ScriptMgr.cpp +++ b/src/bindings/scripts/ScriptMgr.cpp @@ -29,7 +29,7 @@ struct StringTextData uint32 SoundId; uint8 Type; uint32 Language; - uint32 Emote; + uint32 Emote; }; // Enums used by StringTextData::Type @@ -677,7 +677,7 @@ void LoadDatabase() temp.SoundId = fields[1].GetInt32(); temp.Type = fields[2].GetInt32(); temp.Language = fields[3].GetInt32(); - temp.Emote = 0;//fields[4].GetInt32(); + temp.Emote = 0;//fields[4].GetInt32(); if (i >= 0) { @@ -742,7 +742,7 @@ void LoadDatabase() temp.SoundId = fields[1].GetInt32(); temp.Type = fields[2].GetInt32(); temp.Language = fields[3].GetInt32(); - temp.Emote = fields[4].GetInt32(); + temp.Emote = fields[4].GetInt32(); if (i >= 0) { @@ -807,7 +807,7 @@ void LoadDatabase() temp.SoundId = fields[1].GetInt32(); temp.Type = fields[2].GetInt32(); temp.Language = fields[3].GetInt32(); - temp.Emote = fields[4].GetInt32(); + temp.Emote = fields[4].GetInt32(); if (i >= 0) { @@ -1211,7 +1211,7 @@ void ScriptsFree() delete []SpellSummary; // Free resources before library unload - for(int i=0;i> Loaded %i C++ Scripts.", num_sc_scripts); + outstring_log(">> Loaded %i C++ Scripts.", num_sc_scripts); outstring_log(">> Load Overriden SQL Data."); LoadOverridenSQLData(); @@ -1864,15 +1864,15 @@ void DoScriptText(int32 textEntry, WorldObject* pSource, Unit* target) error_log("TSCR: DoScriptText entry %i tried to process invalid sound id %u.",textEntry,(*i).second.SoundId); } - if((*i).second.Emote) - { - if (pSource->GetTypeId() == TYPEID_UNIT || pSource->GetTypeId() == TYPEID_PLAYER) - { - ((Unit*)pSource)->HandleEmoteCommand((*i).second.Emote); - } - else - error_log("TSCR: DoScriptText entry %i tried to process emote for invalid TypeId (%u).",textEntry,pSource->GetTypeId()); - } + if((*i).second.Emote) + { + if (pSource->GetTypeId() == TYPEID_UNIT || pSource->GetTypeId() == TYPEID_PLAYER) + { + ((Unit*)pSource)->HandleEmoteCommand((*i).second.Emote); + } + else + error_log("TSCR: DoScriptText entry %i tried to process emote for invalid TypeId (%u).",textEntry,pSource->GetTypeId()); + } switch((*i).second.Type) { @@ -1923,7 +1923,7 @@ void Script::RegisterSelf() TRINITY_DLL_EXPORT char const* ScriptsVersion() { - return "Default Trinity scripting library"; + return "Default Trinity scripting library"; } TRINITY_DLL_EXPORT bool GossipHello ( Player * player, Creature *_Creature ) -- cgit v1.2.3