mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[6922] Whitespace and newline fixes
This should fix the GCC "no newline at end of file" warnings. Signed-off-by: freghar <compmancz@gmail.com>
This commit is contained in:
parent
ba868910e2
commit
d75812749f
7 changed files with 16 additions and 16 deletions
|
|
@ -2,20 +2,20 @@ ALTER TABLE db_version CHANGE COLUMN required_2008_11_11_01_mangos_db_script_str
|
|||
|
||||
ALTER TABLE event_scripts
|
||||
DROP datatext,
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0';
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0';
|
||||
|
||||
ALTER TABLE gameobject_scripts
|
||||
DROP datatext,
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0';
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0';
|
||||
|
||||
ALTER TABLE quest_end_scripts
|
||||
DROP datatext,
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0';
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0';
|
||||
|
||||
ALTER TABLE quest_start_scripts
|
||||
DROP datatext,
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0';
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0';
|
||||
|
||||
ALTER TABLE spell_scripts
|
||||
DROP datatext,
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0';
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0';
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
ALTER TABLE db_version CHANGE COLUMN required_2008_11_11_02_mangos_scripts required_2008_11_14_01_mangos_scripts bit;
|
||||
|
||||
ALTER TABLE event_scripts
|
||||
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
|
||||
ALTER TABLE gameobject_scripts
|
||||
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
|
||||
ALTER TABLE quest_end_scripts
|
||||
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
|
||||
ALTER TABLE quest_start_scripts
|
||||
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
|
||||
ALTER TABLE spell_scripts
|
||||
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ struct Script
|
|||
CreatureAI* (*GetAI)(Creature *_Creature);
|
||||
InstanceData* (*GetInstanceData)(Map*);
|
||||
// -----------------------------------------
|
||||
|
||||
|
||||
void registerSelf();
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -984,7 +984,7 @@ void WorldSession::HandleChangePlayerNameOpcode(WorldPacket& recv_data)
|
|||
// and that there is no character with the desired new name
|
||||
CharacterDatabase.AsyncPQuery(&WorldSession::HandleChangePlayerNameOpcodeCallBack,
|
||||
GetAccountId(), newname,
|
||||
"SELECT guid, name FROM characters WHERE guid = %d AND account = %d AND (at_login & %d) = %d AND NOT EXISTS (SELECT NULL FROM characters WHERE name = '%s')",
|
||||
"SELECT guid, name FROM characters WHERE guid = %d AND account = %d AND (at_login & %d) = %d AND NOT EXISTS (SELECT NULL FROM characters WHERE name = '%s')",
|
||||
GUID_LOPART(guid), GetAccountId(), AT_LOGIN_RENAME, AT_LOGIN_RENAME, escaped_newname.c_str()
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -579,7 +579,7 @@ void ObjectMgr::LoadCreatureLocales()
|
|||
sLog.outString();
|
||||
sLog.outString( ">> Loaded %u creature locale strings", mCreatureLocaleMap.size() );
|
||||
}
|
||||
|
||||
|
||||
void ObjectMgr::LoadCompletedAchievements()
|
||||
{
|
||||
QueryResult *result = CharacterDatabase.Query("SELECT achievement FROM character_achievement GROUP BY achievement");
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ Database::AsyncQuery(Class *object, void (Class::*method)(QueryResult*, ParamTyp
|
|||
return m_threadBody->Delay(new SqlQuery(sql, new MaNGOS::QueryCallback<Class, ParamType1, ParamType2, ParamType3>(object, method, (QueryResult*)NULL, param1, param2, param3), itr->second));
|
||||
}
|
||||
|
||||
// -- Query / static --
|
||||
// -- Query / static --
|
||||
|
||||
template<typename ParamType1>
|
||||
bool
|
||||
|
|
@ -202,4 +202,4 @@ Database::DelayQueryHolder(Class *object, void (Class::*method)(QueryResult*, Sq
|
|||
|
||||
#undef ASYNC_QUERY_BODY
|
||||
#undef ASYNC_PQUERY_BODY
|
||||
#undef ASYNC_DELAYHOLDER_BODY
|
||||
#undef ASYNC_DELAYHOLDER_BODY
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "6921"
|
||||
#define REVISION_NR "6922"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue