diff --git a/ChangeLog b/ChangeLog index 2e6d5259d..c5bd2b380 100644 --- a/ChangeLog +++ b/ChangeLog @@ -41,13 +41,13 @@ MaNGOS 0.16 (2 July 2010) ==== Server Features ==== - * Added: Implemented SOAP in MaNGOS - * Added: Camera framework for proper mind vision like spells use and grid code cleanups including remove unused cell-level thread locking. + * Added: Implemented SOAP in MaNGOS + * Added: Camera framework for proper mind vision like spells use and grid code cleanups including remove unused cell-level thread locking. * Added: New table character_stats for external tools. * Added: More user friendly output at DB version check fail. * Improved: Update used utf8 cpp library version up to 2.2.4 * Improved: Character `data` field values finally replaced by normal table fields. - * Improved: Increase reserved stack size for mangosd up to 4Mb at Windows + * Improved: Increase reserved stack size for mangosd up to 4Mb at Windows * Improved: Rewritten realmd and mangosd RA code use ACE network classes and drop Sockets lib. * Improved: OpenSSL lib upgrade to OpenSSL 1.0.0. * Improved: Use ACE config library instead dropped dotconfpp. diff --git a/contrib/dbcEditer/SearchFrm.cpp b/contrib/dbcEditer/SearchFrm.cpp index 59e198dfb..51f7bb8b1 100644 --- a/contrib/dbcEditer/SearchFrm.cpp +++ b/contrib/dbcEditer/SearchFrm.cpp @@ -16,11 +16,11 @@ __fastcall TFrmSearch::TFrmSearch(TComponent* Owner) //--------------------------------------------------------------------------- void __fastcall TFrmSearch::btOkClick(TObject *Sender) { - ModalResult = mrOk; + ModalResult = mrOk; } //--------------------------------------------------------------------------- void __fastcall TFrmSearch::btCancelClick(TObject *Sender) { - ModalResult = mrCancel; + ModalResult = mrCancel; } //--------------------------------------------------------------------------- diff --git a/contrib/dbcEditer/bin/update.txt b/contrib/dbcEditer/bin/update.txt index c03af17dd..4cfc1d46f 100644 --- a/contrib/dbcEditer/bin/update.txt +++ b/contrib/dbcEditer/bin/update.txt @@ -1,11 +1,11 @@ -1.4版更新 - 1.修正退出时有时退不出的bug - 2.加入可查找的功能 - 3.加入列切换类型后立即刷新 - 4.加入可以当前单元格写入打开文件的功能 - 5.加入每一列的宽度可调整 - 6.加入支持文本显示,但不能修改,文本修改后不会存入 - -1.41版 - 1.可以固定和取消第一列,以方便查看Spell ID - 2.可以行存,列存,行清,列清,调用计算器 \ No newline at end of file +1.4版更新 + 1.修正退出时有时退不出的bug + 2.加入可查找的功能 + 3.加入列切换类型后立即刷新 + 4.加入可以当前单元格写入打开文件的功能 + 5.加入每一列的宽度可调整 + 6.加入支持文本显示,但不能修改,文本修改后不会存入 + +1.41版 + 1.可以固定和取消第一列,以方便查看Spell ID + 2.可以行存,列存,行清,列清,调用计算器 diff --git a/contrib/dbcEditer/dbcedit.cpp b/contrib/dbcEditer/dbcedit.cpp index 2812a3f70..a162b8f54 100644 --- a/contrib/dbcEditer/dbcedit.cpp +++ b/contrib/dbcEditer/dbcedit.cpp @@ -61,7 +61,7 @@ void TFrmMain::SaveToFile(const char * pszFileName) char szFileName[255]; FILE *stream; - + fnsplit(pszFileName, 0, 0, szFileName, 0); @@ -132,7 +132,7 @@ void TFrmMain::SaveToFile(const char * pszFileName) } FileClose(iFileHandle); fclose(stream); - + delete ini; ShowMessage("Save To File:"+NewFileName); } @@ -445,7 +445,7 @@ void __fastcall TFrmMain::Timer1Timer(TObject *Sender) void __fastcall TFrmMain::N4Click(TObject *Sender) { if(!thOpen) return; - + int iFileHandle; //文件句柄 char buf[4]; int iVal; diff --git a/contrib/dbcEditer/dbcedit.h b/contrib/dbcEditer/dbcedit.h index a603768ea..c1b7a064d 100644 --- a/contrib/dbcEditer/dbcedit.h +++ b/contrib/dbcEditer/dbcedit.h @@ -89,11 +89,11 @@ class TFrmMain : public TForm thOpenFile *thOpen; - bool Term; + bool Term; public: // User declarations bool OpenOk; - + AnsiString CurrentOpenFile; __fastcall TFrmMain(TComponent* Owner); void SaveToFile(const char * pszFileName); diff --git a/contrib/dbcEditer/thOpenSource.cpp b/contrib/dbcEditer/thOpenSource.cpp index 7df4debfe..604342797 100644 --- a/contrib/dbcEditer/thOpenSource.cpp +++ b/contrib/dbcEditer/thOpenSource.cpp @@ -28,7 +28,7 @@ __fastcall thOpenFile::thOpenFile(bool CreateSuspended) : TThread(CreateSuspended) { - + } //--------------------------------------------------------------------------- void __fastcall thOpenFile::Execute() @@ -57,7 +57,7 @@ void thOpenFile::ReadAndModifyFromBuff(char *pBuff, DWORD dwSize, const char* ps char szNewFileName[MAX_PATH]; DWORD w; TIniFile *ini; - + TypePtr p(pBuff); if('WDBC' != TAG(*p.dw)) @@ -95,7 +95,7 @@ void thOpenFile::ReadAndModifyFromBuff(char *pBuff, DWORD dwSize, const char* ps delete ini; //int *ColType = new int[dwCols]; - + DWORD dwTextStartPos = dwRows*dwRowLen+20; char* pTextPtr = pBuff + dwTextStartPos; char pszTemp[MAX_PATH]; diff --git a/contrib/dbcEditer/thOpenSource.h b/contrib/dbcEditer/thOpenSource.h index edf6bd064..47c3c3845 100644 --- a/contrib/dbcEditer/thOpenSource.h +++ b/contrib/dbcEditer/thOpenSource.h @@ -6,7 +6,7 @@ #include //--------------------------------------------------------------------------- class thOpenFile : public TThread -{ +{ private: protected: void __fastcall Execute(); @@ -14,7 +14,7 @@ class thOpenFile : public TThread public: bool thEnd; int ColType[10000]; - + __fastcall thOpenFile(bool CreateSuspended); void LoadAndModify(const char * pszFileName); void ReadAndModifyFromBuff(char *pBuff, DWORD dwSize, const char* pszFileName); diff --git a/contrib/dbcformat/dbc.desc b/contrib/dbcformat/dbc.desc index 470108cab..e17767d2c 100644 --- a/contrib/dbcformat/dbc.desc +++ b/contrib/dbcformat/dbc.desc @@ -43,7 +43,7 @@ ENDENTRY ENTRY SpellEntry - INDEX Id + INDEX Id UINT School UNKNOWN [2] UINT Category @@ -51,17 +51,17 @@ ENTRY SpellEntry UINT Attributes UINT AttributesEx UNKNOWN [3] - UINT Targets - UINT TargetCreatureType - UINT RequiresSpellFocus + UINT Targets + UINT TargetCreatureType + UINT RequiresSpellFocus UNKNOWN - UINT CasterAuraState - UINT CastingTimeIndex + UINT CasterAuraState + UINT CastingTimeIndex UINT RecoveryTime UINT CategoryRecoveryTime UINT InterruptFlags UINT AuraInterruptFlags - UINT ChannelInterruptFlags + UINT ChannelInterruptFlags UINT procFlags UINT procChance UINT procCharges @@ -71,41 +71,41 @@ ENTRY SpellEntry UINT DurationIndex UINT powerType UINT manaCost - UINT manaCostPerlevel + UINT manaCostPerlevel UINT manaPerSecond UINT manaPerSecondPerLevel UINT rangeIndex FLOAT speed UINT modalNextSpell - UNKNOWN - UINT Totem[2] - UINT Reagent[8] - UINT ReagentCount[8] - UINT EquippedItemClass - UINT EquippedItemSubClass - UINT Effect[3] // 59 - 61 - UINT EffectDieSides[3] - UINT EffectBaseDice[3] - FLOAT EffectDicePerLevel[3] - FLOAT EffectRealPointsPerLevel[3] + UNKNOWN + UINT Totem[2] + UINT Reagent[8] + UINT ReagentCount[8] + UINT EquippedItemClass + UINT EquippedItemSubClass + UINT Effect[3] // 59 - 61 + UINT EffectDieSides[3] + UINT EffectBaseDice[3] + FLOAT EffectDicePerLevel[3] + FLOAT EffectRealPointsPerLevel[3] INT EffectBasePoints[3] // 74 - 76 UNKNOWN [3] UINT EffectImplicitTargetA[3] // 80 - 82 UINT EffectImplicitTargetB[3] // 83 - 85 - UINT EffectRadiusIndex[3] - UINT EffectApplyAuraName[3] // 89 - 91 - UINT EffectAmplitude[3] - UINT Effectunknown[3] - UINT EffectChainTarget[3] - UINT EffectItemType[3] - UINT EffectMiscValue[3] // 104 - 106 - UINT EffectTriggerSpell[3] - FLOAT EffectPointsPerComboPoint[3] - UINT SpellVisual - UNKNOWN - UINT SpellIconID + UINT EffectRadiusIndex[3] + UINT EffectApplyAuraName[3] // 89 - 91 + UINT EffectAmplitude[3] + UINT Effectunknown[3] + UINT EffectChainTarget[3] + UINT EffectItemType[3] + UINT EffectMiscValue[3] // 104 - 106 + UINT EffectTriggerSpell[3] + FLOAT EffectPointsPerComboPoint[3] + UINT SpellVisual + UNKNOWN + UINT SpellIconID UINT activeIconID - UINT spellPriority + UINT spellPriority UNUSED STR Name UNUSED STR NameAlt1 UNUSED STR NameAlt2 @@ -198,7 +198,7 @@ ENTRY FactionEntry UNKNOWN[7] UINT something1 - UINT something2 + UINT something2 UINT something3 UINT something4 UINT something5 @@ -208,7 +208,7 @@ ENTRY FactionEntry UINT something9 UINT faction - UNUSED STR name + UNUSED STR name UNKNOWN[17] ENDENTRY @@ -236,6 +236,6 @@ ENTRY ItemDisplayTemplateEntry UNKNOWN[5] UINT seed UNKNOWN [10] - UINT randomPropertyID + UINT randomPropertyID ENDENTRY diff --git a/contrib/extractor/CMakeLists.txt b/contrib/extractor/CMakeLists.txt index 684be34a5..d35576799 100644 --- a/contrib/extractor/CMakeLists.txt +++ b/contrib/extractor/CMakeLists.txt @@ -14,11 +14,11 @@ project (MANGOS_MAP_EXTRACTOR) add_subdirectory (libmpq) add_subdirectory (loadlib) -include_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/libmpq) -include_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/loadlib) +include_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/libmpq) +include_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/loadlib) -link_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/libmpq) -link_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/loadlib) +link_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/libmpq) +link_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/loadlib) add_executable (ad dbcfile.cpp mpq_libmpq.cpp System.cpp) diff --git a/contrib/extractor/libmpq/common.cpp b/contrib/extractor/libmpq/common.cpp index 8ce864627..bcb83f071 100644 --- a/contrib/extractor/libmpq/common.cpp +++ b/contrib/extractor/libmpq/common.cpp @@ -109,7 +109,7 @@ int libmpq_decrypt_blocktable(mpq_archive *mpq_a, unsigned char *pbKey) { ch = toupper(*pbKey++); seed1 = mpq_a->buf[0x300 + ch] ^ (seed1 + seed2); seed2 = ch + seed1 + seed2 + (seed2 << 5) + 3; - } + } /* Decrypt it */ seed2 = 0xEEEEEEEE; @@ -704,7 +704,7 @@ int libmpq_file_read_file(mpq_archive *mpq_a, mpq_file *mpq_f, unsigned int file unsigned int loaded = mpq_a->blocksize; /* Check if data are loaded in the cache */ - if (mpq_f->accessed == FALSE || blockpos != mpq_a->blockpos) { + if (mpq_f->accessed == FALSE || blockpos != mpq_a->blockpos) { /* Load one MPQ block into archive buffer */ loaded = libmpq_file_read_block(mpq_a, mpq_f, blockpos, (char *)mpq_a->blockbuf, mpq_a->blocksize); diff --git a/contrib/extractor/libmpq/explode.cpp b/contrib/extractor/libmpq/explode.cpp index bcf9e7857..273718ff7 100644 --- a/contrib/extractor/libmpq/explode.cpp +++ b/contrib/extractor/libmpq/explode.cpp @@ -112,7 +112,7 @@ static unsigned short pkzip_code_asc[] = { 0x0300, 0x0D40, 0x1D00, 0x0D00, 0x1500, 0x0540, 0x0500, 0x1900, 0x0900, 0x0940, 0x1100, 0x0100, 0x1E00, 0x0E00, 0x0140, 0x1600, 0x0600, 0x1A00, 0x0E40, 0x0640, 0x0A40, 0x0A00, 0x1200, 0x0200, - 0x1C00, 0x0C00, 0x1400, 0x0400, 0x1800, 0x0800, 0x1000, 0x0000 + 0x1C00, 0x0C00, 0x1400, 0x0400, 0x1800, 0x0800, 0x1000, 0x0000 }; /* Local variables */ diff --git a/contrib/extractor/libmpq/huffman.cpp b/contrib/extractor/libmpq/huffman.cpp index b63eee43e..0c5fee3d8 100644 --- a/contrib/extractor/libmpq/huffman.cpp +++ b/contrib/extractor/libmpq/huffman.cpp @@ -309,7 +309,7 @@ static void libmpq_huff_build_tree(struct huffman_tree *ht, unsigned int cmp_typ /* Loop while pointer has a negative value. */ while (PTR_INT(ht->last) > 0) { /* ESI - Last entry */ struct huffman_tree_item *temp; /* EAX */ - + if (ht->last->next != NULL) { /* ESI->next */ libmpq_huff_remove_item(ht->last); } diff --git a/contrib/extractor/libmpq/mpq.cpp b/contrib/extractor/libmpq/mpq.cpp index 9d60258f0..14b0e8a30 100644 --- a/contrib/extractor/libmpq/mpq.cpp +++ b/contrib/extractor/libmpq/mpq.cpp @@ -601,7 +601,7 @@ int libmpq_file_getdata(mpq_archive *mpq_a, mpq_hash mpq_h, const int number, un if (mpq_f->mpq_b->flags & LIBMPQ_FILE_COMPRESSED) { // Free buffer for block positions - + free(mpq_f->blockpos); } /* freeing the file structure */ diff --git a/contrib/extractor/libmpq/wave.cpp b/contrib/extractor/libmpq/wave.cpp index 8edc1f7fa..d8907611d 100644 --- a/contrib/extractor/libmpq/wave.cpp +++ b/contrib/extractor/libmpq/wave.cpp @@ -31,8 +31,8 @@ static unsigned long wave_table_1503f120[] = { 0xFFFFFFFF, 0x00000000, 0xFFFFFFFF, 0x00000004, 0xFFFFFFFF, 0x00000002, 0xFFFFFFFF, 0x00000006, 0xFFFFFFFF, 0x00000001, 0xFFFFFFFF, 0x00000005, 0xFFFFFFFF, 0x00000003, 0xFFFFFFFF, 0x00000007, - 0xFFFFFFFF, 0x00000001, 0xFFFFFFFF, 0x00000005, 0xFFFFFFFF, 0x00000003, 0xFFFFFFFF, 0x00000007, - 0xFFFFFFFF, 0x00000002, 0xFFFFFFFF, 0x00000004, 0xFFFFFFFF, 0x00000006, 0xFFFFFFFF, 0x00000008 + 0xFFFFFFFF, 0x00000001, 0xFFFFFFFF, 0x00000005, 0xFFFFFFFF, 0x00000003, 0xFFFFFFFF, 0x00000007, + 0xFFFFFFFF, 0x00000002, 0xFFFFFFFF, 0x00000004, 0xFFFFFFFF, 0x00000006, 0xFFFFFFFF, 0x00000008 }; static unsigned long wave_table_1503f1a0[] = { diff --git a/contrib/extractor/libmpq/wave.h b/contrib/extractor/libmpq/wave.h index 8920880a0..5beb97a72 100644 --- a/contrib/extractor/libmpq/wave.h +++ b/contrib/extractor/libmpq/wave.h @@ -22,7 +22,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ + */ #ifndef _WAVE_H #define _WAVE_H diff --git a/contrib/extractor/loadlib/adt.h b/contrib/extractor/loadlib/adt.h index 725c5b994..729412ada 100644 --- a/contrib/extractor/loadlib/adt.h +++ b/contrib/extractor/loadlib/adt.h @@ -55,7 +55,7 @@ class adt_MCLQ uint32 light; float height; } liquid[ADT_CELL_SIZE+1][ADT_CELL_SIZE+1]; - + // 1<<0 - ochen // 1<<1 - lava/slime // 1<<2 - water @@ -197,7 +197,7 @@ class adt_MH2O return 0; } - float *getLiquidHeightMap(adt_liquid_header *h) + float *getLiquidHeightMap(adt_liquid_header *h) { if (h->formatFlags & ADT_LIQUID_HEADER_NO_HIGHT) return 0; @@ -206,7 +206,7 @@ class adt_MH2O return 0; } - uint8 *getLiquidLightMap(adt_liquid_header *h) + uint8 *getLiquidLightMap(adt_liquid_header *h) { if (h->formatFlags&ADT_LIQUID_HEADER_FULL_LIGHT) return 0; @@ -219,7 +219,7 @@ class adt_MH2O return 0; } - uint32 *getLiquidFullLightMap(adt_liquid_header *h) + uint32 *getLiquidFullLightMap(adt_liquid_header *h) { if (!(h->formatFlags&ADT_LIQUID_HEADER_FULL_LIGHT)) return 0; @@ -232,7 +232,7 @@ class adt_MH2O return 0; } - uint64 getLiquidShowMap(adt_liquid_header *h) + uint64 getLiquidShowMap(adt_liquid_header *h) { if (h->offsData2a) return *((uint64 *)((uint8*)this + 8 + h->offsData2a)); @@ -256,11 +256,11 @@ class adt_MHDR uint32 pad; uint32 offsMCIN; // MCIN uint32 offsTex; // MTEX - uint32 offsModels; // MMDX - uint32 offsModelsIds; // MMID - uint32 offsMapObejcts; // MWMO - uint32 offsMapObejctsIds; // MWID - uint32 offsDoodsDef; // MDDF + uint32 offsModels; // MMDX + uint32 offsModelsIds; // MMID + uint32 offsMapObejcts; // MWMO + uint32 offsMapObejctsIds; // MWID + uint32 offsDoodsDef; // MDDF uint32 offsObjectsDef; // MODF uint32 offsMFBO; // MFBO uint32 offsMH2O; // MH2O diff --git a/contrib/extractor/loadlib/loadlib.h b/contrib/extractor/loadlib/loadlib.h index 537317534..96cd25ced 100644 --- a/contrib/extractor/loadlib/loadlib.h +++ b/contrib/extractor/loadlib/loadlib.h @@ -12,9 +12,9 @@ typedef unsigned __int16 uint16; typedef unsigned __int8 uint8; #else #include -#ifndef uint64_t +#ifndef uint64_t #ifdef __linux__ -#include +#include #endif #endif typedef int64_t int64; diff --git a/contrib/git_id/git_id.cpp b/contrib/git_id/git_id.cpp index 47007ea43..a80d74ed8 100644 --- a/contrib/git_id/git_id.cpp +++ b/contrib/git_id/git_id.cpp @@ -122,7 +122,7 @@ bool find_path() getcwd(cur_path, MAX_PATH); size_t len = strlen(cur_path); strncpy(base_path, cur_path, len+1); - + if(cur_path[len-1] == '/' || cur_path[len-1] == '\\') { // we're in root, don't bother diff --git a/contrib/vmap_extractor_v3/vmapextract/loadlib/loadlib.h b/contrib/vmap_extractor_v3/vmapextract/loadlib/loadlib.h index 537317534..96cd25ced 100644 --- a/contrib/vmap_extractor_v3/vmapextract/loadlib/loadlib.h +++ b/contrib/vmap_extractor_v3/vmapextract/loadlib/loadlib.h @@ -12,9 +12,9 @@ typedef unsigned __int16 uint16; typedef unsigned __int8 uint8; #else #include -#ifndef uint64_t +#ifndef uint64_t #ifdef __linux__ -#include +#include #endif #endif typedef int64_t int64; diff --git a/contrib/vmap_extractor_v3/vmapextract/model.h b/contrib/vmap_extractor_v3/vmapextract/model.h index d1be46f3c..c131645bd 100644 --- a/contrib/vmap_extractor_v3/vmapextract/model.h +++ b/contrib/vmap_extractor_v3/vmapextract/model.h @@ -35,7 +35,7 @@ class Model char outfilename; }; -class ModelInstance +class ModelInstance { public: Model *model; diff --git a/contrib/vmap_extractor_v3/vmapextract/mpq_libmpq04.h b/contrib/vmap_extractor_v3/vmapextract/mpq_libmpq04.h index ccbfe37cb..4b0a2465b 100644 --- a/contrib/vmap_extractor_v3/vmapextract/mpq_libmpq04.h +++ b/contrib/vmap_extractor_v3/vmapextract/mpq_libmpq04.h @@ -30,7 +30,7 @@ class MPQArchive libmpq__file_unpacked_size(mpq_a, filenum, &size); char *buffer = new char[size]; - + libmpq__file_read(mpq_a, filenum, (unsigned char*)buffer, size, &transferred); char seps[] = "\n"; diff --git a/contrib/vmap_extractor_v3/vmapextract/vec3d.h b/contrib/vmap_extractor_v3/vmapextract/vec3d.h index d2569bc13..06a5b730f 100644 --- a/contrib/vmap_extractor_v3/vmapextract/vec3d.h +++ b/contrib/vmap_extractor_v3/vmapextract/vec3d.h @@ -106,7 +106,7 @@ class Vec3D in >> v.x >> v.y >> v.z; return in; } - + friend std::ostream& operator<<(std::ostream& out, const Vec3D& v) { out << v.x << " " << v.y << " " << v.z; diff --git a/m4/pkg.m4 b/m4/pkg.m4 index a0b9cd45d..64be7479e 100644 --- a/m4/pkg.m4 +++ b/m4/pkg.m4 @@ -1,5 +1,5 @@ # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- -# +# # Copyright 漏 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify @@ -39,7 +39,7 @@ if test -n "$PKG_CONFIG"; then AC_MSG_RESULT([no]) PKG_CONFIG="" fi - + fi[]dnl ])# PKG_PROG_PKG_CONFIG @@ -118,7 +118,7 @@ if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` - else + else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs diff --git a/sql/characters.sql b/sql/characters.sql index c1c050440..8b0e52e12 100644 --- a/sql/characters.sql +++ b/sql/characters.sql @@ -374,12 +374,12 @@ CREATE TABLE `character_aura` ( `spell` int(11) unsigned NOT NULL default '0', `stackcount` int(11) NOT NULL default '1', `remaincharges` int(11) NOT NULL default '0', - `basepoints0` INT(11) NOT NULL DEFAULT '0', - `basepoints1` INT(11) NOT NULL DEFAULT '0', + `basepoints0` INT(11) NOT NULL DEFAULT '0', + `basepoints1` INT(11) NOT NULL DEFAULT '0', `basepoints2` INT(11) NOT NULL DEFAULT '0', `maxduration0` INT(11) NOT NULL DEFAULT '0', `maxduration1` INT(11) NOT NULL DEFAULT '0', - `maxduration2` INT(11) NOT NULL DEFAULT '0', + `maxduration2` INT(11) NOT NULL DEFAULT '0', `remaintime0` INT(11) NOT NULL DEFAULT '0', `remaintime1` INT(11) NOT NULL DEFAULT '0', `remaintime2` INT(11) NOT NULL DEFAULT '0', @@ -1567,12 +1567,12 @@ CREATE TABLE `pet_aura` ( `spell` int(11) unsigned NOT NULL default '0', `stackcount` int(11) NOT NULL default '1', `remaincharges` int(11) NOT NULL default '0', - `basepoints0` INT(11) NOT NULL DEFAULT '0', - `basepoints1` INT(11) NOT NULL DEFAULT '0', + `basepoints0` INT(11) NOT NULL DEFAULT '0', + `basepoints1` INT(11) NOT NULL DEFAULT '0', `basepoints2` INT(11) NOT NULL DEFAULT '0', `maxduration0` INT(11) NOT NULL DEFAULT '0', `maxduration1` INT(11) NOT NULL DEFAULT '0', - `maxduration2` INT(11) NOT NULL DEFAULT '0', + `maxduration2` INT(11) NOT NULL DEFAULT '0', `remaintime0` INT(11) NOT NULL DEFAULT '0', `remaintime1` INT(11) NOT NULL DEFAULT '0', `remaintime2` INT(11) NOT NULL DEFAULT '0', diff --git a/sql/updates/0.16/09977_01_mangos_spell_proc_event.sql b/sql/updates/0.16/09977_01_mangos_spell_proc_event.sql index 9627bfd86..e33035ba7 100644 --- a/sql/updates/0.16/09977_01_mangos_spell_proc_event.sql +++ b/sql/updates/0.16/09977_01_mangos_spell_proc_event.sql @@ -1,7 +1,7 @@ ALTER TABLE db_version CHANGE COLUMN required_9967_01_mangos_spell_proc_event required_9977_01_mangos_spell_proc_event bit; DELETE FROM `spell_proc_event` WHERE `entry` IN (16180,16196,16198); -INSERT INTO `spell_proc_event` VALUES +INSERT INTO `spell_proc_event` VALUES (16180,0x00000000,11,0x000001C0,0x00000000,0x00000010,0x00000000,0x00000002,0.000000,0.000000, 0), (16196,0x00000000,11,0x000001C0,0x00000000,0x00000010,0x00000000,0x00000002,0.000000,0.000000, 0), (16198,0x00000000,11,0x000001C0,0x00000000,0x00000010,0x00000000,0x00000002,0.000000,0.000000, 0); diff --git a/sql/updates/0.16/10036_01_mangos_spell_proc_event.sql b/sql/updates/0.16/10036_01_mangos_spell_proc_event.sql index 626155c04..1ef56cb4f 100644 --- a/sql/updates/0.16/10036_01_mangos_spell_proc_event.sql +++ b/sql/updates/0.16/10036_01_mangos_spell_proc_event.sql @@ -1,5 +1,5 @@ ALTER TABLE db_version CHANGE COLUMN required_10036_01_mangos_spell_chain required_10036_01_mangos_spell_proc_event bit; DELETE FROM `spell_proc_event` WHERE `entry` IN (30881,30883,30884,30885,30886); -INSERT INTO `spell_proc_event` VALUES +INSERT INTO `spell_proc_event` VALUES (30881, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 30); diff --git a/sql/updates/10156_01_characters_character_aura.sql b/sql/updates/10156_01_characters_character_aura.sql index 73ae864c7..f9f908735 100644 --- a/sql/updates/10156_01_characters_character_aura.sql +++ b/sql/updates/10156_01_characters_character_aura.sql @@ -4,12 +4,12 @@ DELETE FROM `character_aura`; ALTER TABLE `character_aura` DROP COLUMN `effect_index`, DROP COLUMN `amount`, DROP COLUMN `maxduration`, DROP COLUMN `remaintime`; ALTER TABLE `character_aura` - ADD COLUMN `basepoints0` INT(11) NOT NULL DEFAULT '0', - ADD COLUMN `basepoints1` INT(11) NOT NULL DEFAULT '0', + ADD COLUMN `basepoints0` INT(11) NOT NULL DEFAULT '0', + ADD COLUMN `basepoints1` INT(11) NOT NULL DEFAULT '0', ADD COLUMN `basepoints2` INT(11) NOT NULL DEFAULT '0', ADD COLUMN `maxduration0` INT(11) NOT NULL DEFAULT '0', ADD COLUMN `maxduration1` INT(11) NOT NULL DEFAULT '0', - ADD COLUMN `maxduration2` INT(11) NOT NULL DEFAULT '0', + ADD COLUMN `maxduration2` INT(11) NOT NULL DEFAULT '0', ADD COLUMN `remaintime0` INT(11) NOT NULL DEFAULT '0', ADD COLUMN `remaintime1` INT(11) NOT NULL DEFAULT '0', ADD COLUMN `remaintime2` INT(11) NOT NULL DEFAULT '0', diff --git a/sql/updates/10156_02_characters_pet_aura.sql b/sql/updates/10156_02_characters_pet_aura.sql index b7f9c5fcb..38f7472bd 100644 --- a/sql/updates/10156_02_characters_pet_aura.sql +++ b/sql/updates/10156_02_characters_pet_aura.sql @@ -4,12 +4,12 @@ DELETE FROM `pet_aura`; ALTER TABLE `pet_aura` DROP COLUMN `effect_index`, DROP COLUMN `amount`, DROP COLUMN `maxduration`, DROP COLUMN `remaintime`; ALTER TABLE `pet_aura` - ADD COLUMN `basepoints0` INT(11) NOT NULL DEFAULT '0', - ADD COLUMN `basepoints1` INT(11) NOT NULL DEFAULT '0', + ADD COLUMN `basepoints0` INT(11) NOT NULL DEFAULT '0', + ADD COLUMN `basepoints1` INT(11) NOT NULL DEFAULT '0', ADD COLUMN `basepoints2` INT(11) NOT NULL DEFAULT '0', ADD COLUMN `maxduration0` INT(11) NOT NULL DEFAULT '0', ADD COLUMN `maxduration1` INT(11) NOT NULL DEFAULT '0', - ADD COLUMN `maxduration2` INT(11) NOT NULL DEFAULT '0', + ADD COLUMN `maxduration2` INT(11) NOT NULL DEFAULT '0', ADD COLUMN `remaintime0` INT(11) NOT NULL DEFAULT '0', ADD COLUMN `remaintime1` INT(11) NOT NULL DEFAULT '0', ADD COLUMN `remaintime2` INT(11) NOT NULL DEFAULT '0', diff --git a/sql/updates/10217_01_mangos_playercreateinfo_spell.sql b/sql/updates/10217_01_mangos_playercreateinfo_spell.sql index ee49e3141..a2da627f7 100644 --- a/sql/updates/10217_01_mangos_playercreateinfo_spell.sql +++ b/sql/updates/10217_01_mangos_playercreateinfo_spell.sql @@ -3,7 +3,7 @@ ALTER TABLE db_version CHANGE COLUMN required_10208_01_mangos_playercreateinfo r DELETE FROM playercreateinfo_spell WHERE spell=1843 ; DELETE FROM playercreateinfo_spell WHERE spell=21084; -- humans -INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES +INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (1, 1, 68398, 'Opening'), (1, 2, 20154, 'Seal of Righteousness'), (1, 2, 68398, 'Opening'), @@ -16,7 +16,7 @@ INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (1, 9, 75445, 'Demonic Immolate'); -- dwarf -INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES +INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (3, 1, 68398, 'Opening'), (3, 2, 20154, 'Seal of Righteousness'), (3, 2, 68398, 'Opening'), @@ -25,7 +25,7 @@ INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (3, 5, 68398, 'Opening'); -- night elfs -INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES +INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (4, 1, 21009, 'Elusiveness'), (4, 1, 68398, 'Opening'), (4, 3, 21009, 'Elusiveness'), @@ -38,7 +38,7 @@ INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (4, 11, 68398, 'Opening'); -- gnome -INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES +INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (7, 1, 68398, 'Opening'), (7, 4, 68398, 'Opening'), (7, 8, 68398, 'Opening'), @@ -48,7 +48,7 @@ INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (7, 9, 75445, 'Demonic Immolate'); -- orc -INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES +INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (2, 1, 68398, 'Opening'), (2, 3, 68398, 'Opening'), (2, 4, 68398, 'Opening'), @@ -60,7 +60,7 @@ INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (2, 9, 75445, 'Demonic Immolate'); -- undead -INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES +INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (5, 1, 68398, 'Opening'), (5, 4, 68398, 'Opening'), (5, 5, 68398, 'Opening'), @@ -70,8 +70,8 @@ INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (5, 9, 68398, 'Opening'), (5, 9, 75445, 'Demonic Immolate'); --- tauren -INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES +-- tauren +INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (6, 1, 68398, 'Opening'), (6, 3, 68398, 'Opening'), (6, 7, 68398, 'Opening'), @@ -80,7 +80,7 @@ INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (6, 11, 68398, 'Opening'); -- troll -INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES +INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (8, 1, 68398, 'Opening'), (8, 3, 68398, 'Opening'), (8, 4, 68398, 'Opening'), @@ -91,7 +91,7 @@ INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (8, 8, 71761, 'Deep Freeze Immunity State'); -- bloodelf -INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES +INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (10, 2, 20154, 'Seal of Righteousness'), (10, 2, 68398, 'Opening'), (10, 3, 68398, 'Opening'), @@ -103,7 +103,7 @@ INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (10, 9, 75445, 'Demonic Immolate'); -- drarenei -INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES +INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (11, 1, 68398, 'Opening'), (11, 2, 20154, 'Seal of Righteousness'), (11, 2, 68398, 'Opening'), @@ -114,8 +114,8 @@ INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (11, 8, 68398, 'Opening'), (11, 8, 71761, 'Deep Freeze Immunity State'); --- dk -INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES +-- dk +INSERT IGNORE INTO playercreateinfo_spell (race, class, Spell, Note) VALUES (1, 6, 68398, 'Opening'), (2, 6, 68398, 'Opening'), (3, 6, 68398, 'Opening'), diff --git a/sql/updates/10254_01_characters_auctionhouse.sql b/sql/updates/10254_01_characters_auctionhouse.sql index cd2c73856..ac3c78120 100644 --- a/sql/updates/10254_01_characters_auctionhouse.sql +++ b/sql/updates/10254_01_characters_auctionhouse.sql @@ -4,7 +4,7 @@ ALTER TABLE auctionhouse ADD COLUMN houseid int(11) unsigned NOT NULL default '0' AFTER id; UPDATE auctionhouse, mangos.creature AS c, mangos.creature_template AS ct - SET houseid = + SET houseid = CASE ct.faction_A WHEN 12 THEN 1 /* human */ WHEN 29 THEN 6 /* orc, and generic for horde */ diff --git a/sql/updates/10582_01_mangos_spell_proc_event.sql b/sql/updates/10582_01_mangos_spell_proc_event.sql index cc91a9d3c..2f70a0a33 100644 --- a/sql/updates/10582_01_mangos_spell_proc_event.sql +++ b/sql/updates/10582_01_mangos_spell_proc_event.sql @@ -1,7 +1,7 @@ ALTER TABLE db_version CHANGE COLUMN required_10551_01_mangos_spell_proc_event required_10582_01_mangos_spell_proc_event bit; DELETE FROM spell_proc_event WHERE entry IN (67356, 67363, 67365, 67379, 67381, 67384, 67386, 67389, 67392); -INSERT INTO spell_proc_event(entry, SchoolMask, SpellFamilyName, +INSERT INTO spell_proc_event(entry, SchoolMask, SpellFamilyName, SpellFamilyMaskA0, SpellFamilyMaskA1, SpellFamilyMaskA2, SpellFamilyMaskB0, SpellFamilyMaskB1, SpellFamilyMaskB2, SpellFamilyMaskC0, SpellFamilyMaskC1, SpellFamilyMaskC2, diff --git a/sql/updates/10604_01_mangos_spell_proc_event.sql b/sql/updates/10604_01_mangos_spell_proc_event.sql index 1a21f51da..9ca5e7b32 100644 --- a/sql/updates/10604_01_mangos_spell_proc_event.sql +++ b/sql/updates/10604_01_mangos_spell_proc_event.sql @@ -1,9 +1,9 @@ ALTER TABLE db_version CHANGE COLUMN required_10582_01_mangos_spell_proc_event required_10604_01_mangos_spell_proc_event bit; -DELETE FROM spell_proc_event WHERE entry IN +DELETE FROM spell_proc_event WHERE entry IN (57907,62147,64952,64964,71174,71176,71178,71186,71191,71194,71198,71217,71226,71228); -INSERT INTO spell_proc_event(entry, SchoolMask, SpellFamilyName, +INSERT INTO spell_proc_event(entry, SchoolMask, SpellFamilyName, SpellFamilyMaskA0, SpellFamilyMaskA1, SpellFamilyMaskA2, SpellFamilyMaskB0, SpellFamilyMaskB1, SpellFamilyMaskB2, SpellFamilyMaskC0, SpellFamilyMaskC1, SpellFamilyMaskC2, diff --git a/sql/updates/10762_01_mangos_spell_proc_event.sql b/sql/updates/10762_01_mangos_spell_proc_event.sql index afc5f9e53..9ffd0b67c 100644 --- a/sql/updates/10762_01_mangos_spell_proc_event.sql +++ b/sql/updates/10762_01_mangos_spell_proc_event.sql @@ -5,5 +5,5 @@ INSERT INTO spell_proc_event VALUES (52437, 0x00, 4, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000010, 0x00000000, 0.000000, 0.000000, 0); - + diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index a0f62f9f7..d29c092c1 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -41,7 +41,7 @@ // |color|Hachievement_criteria:criteria_id|h[name]|h|r // |color|Harea:area_id|h[name]|h|r // |color|Hareatrigger:id|h[name]|h|r -// |color|Hareatrigger_target:id|h[name]|h|r +// |color|Hareatrigger_target:id|h[name]|h|r // |color|Hcreature:creature_guid|h[name]|h|r // |color|Hcreature_entry:creature_id|h[name]|h|r // |color|Henchant:recipe_spell_id|h[prof_name: recipe_name]|h|r - client, at shift click in recipes list dialog @@ -2222,7 +2222,7 @@ bool ChatHandler::ExtractOptFloat(char** args, float& val, float defVal) * Function extract name-like string (from non-numeric or special symbol until whitespace) * * @param args variable pointer to non parsed args string, updated at function call to new position (with skipped white spaces) - * @param lit optional explicit literal requirement. function fail if literal is not starting substring of lit. + * @param lit optional explicit literal requirement. function fail if literal is not starting substring of lit. * Note: function in same way fail if no any literal or literal not fit in this case. Need additional check for select specific fail case * @return name/number-like string without whitespaces, or NULL if args empty or not appropriate content. */ @@ -2353,7 +2353,7 @@ char* ChatHandler::ExtractQuotedOrLiteralArg(char** args, bool asis /*= false*/) } /** - * Function extract on/off literals as boolean values + * Function extract on/off literals as boolean values * * @param args variable pointer to non parsed args string, updated at function call to new position (with skipped white spaces) * @param val return extracted value if function success, in fail case original value unmodified @@ -2417,7 +2417,7 @@ char* ChatHandler::ExtractLinkArg(char** args, char const* const* linkTypes /*= if (*tail != 'H') // skip color part, some links can not have color part { - while (*tail && *tail != '|') + while (*tail && *tail != '|') ++tail; if (!*tail) @@ -2557,7 +2557,7 @@ char* ChatHandler::ExtractLinkArg(char** args, char const* const* linkTypes /*= somethingPair[1] = somethingEnd; } - *args = tail; + *args = tail; SkipWhiteSpaces(args); @@ -2630,7 +2630,7 @@ char* ChatHandler::ExtractKeyFromLink(char** text, char const* linkType, char** } /** - * Function extract data from shift-link "|color|LINKTYPE:RETURN:SOMETHING1|h[name]|h|r if LINKTYPE in linkTypes array + * Function extract data from shift-link "|color|LINKTYPE:RETURN:SOMETHING1|h[name]|h|r if LINKTYPE in linkTypes array * It also extract literal/quote if not shift-link in args * * @param args variable pointer to non parsed args string, updated at function call to new position (with skipped white spaces) diff --git a/src/game/DBCStructure.h b/src/game/DBCStructure.h index 74007ae7d..9948032f1 100644 --- a/src/game/DBCStructure.h +++ b/src/game/DBCStructure.h @@ -732,7 +732,7 @@ struct CreatureDisplayInfoExtraEntry //uint32 SkinColor; // 3 //uint32 FaceType; // 4 //uint32 HairType; // 5 CharHairGeosets.dbc - //uint32 HairStyle; // 6 CharSections.dbc, where GeneralType=3 + //uint32 HairStyle; // 6 CharSections.dbc, where GeneralType=3 //uint32 BeardStyle; // 7 //uint32 Equipment[11]; // 8-18 equipped static items EQUIPMENT_SLOT_HEAD..EQUIPMENT_SLOT_HANDS, client show its by self //uint32 CanEquip; // 19 0..1 Can equip additional things when used for players diff --git a/src/game/GameEventMgr.cpp b/src/game/GameEventMgr.cpp index e785ec577..e7953db7d 100644 --- a/src/game/GameEventMgr.cpp +++ b/src/game/GameEventMgr.cpp @@ -170,8 +170,8 @@ void GameEventMgr::LoadFromDB() sLog.outString( ">> Loaded %u game events", count ); } - std::map pool2event; // for check unique spawn event associated with pool - std::map creature2event; // for check unique spawn event associated with creature + std::map pool2event; // for check unique spawn event associated with pool + std::map creature2event; // for check unique spawn event associated with creature std::map go2event; // for check unique spawn event associated with gameobject // list only positive event top pools, filled at creature/gameobject loading @@ -221,7 +221,7 @@ void GameEventMgr::LoadFromDB() ++count; // spawn objects at event can be grouped in pools and then affected pools have stricter requirements for this case - if (event_id > 0) + if (event_id > 0) { creature2event[guid] = event_id; @@ -299,7 +299,7 @@ void GameEventMgr::LoadFromDB() ++count; // spawn objects at event can be grouped in pools and then affected pools have stricter requirements for this case - if (event_id > 0) + if (event_id > 0) { go2event[guid] = event_id; @@ -690,7 +690,7 @@ void GameEventMgr::GameEventSpawn(int16 event_id) CreatureData const* data = sObjectMgr.GetCreatureData(*itr); if (data) { - // negative event id for pool element meaning allow be used in next pool spawn + // negative event id for pool element meaning allow be used in next pool spawn if (event_id < 0) { if (uint16 pool_id = sPoolMgr.IsPartOfAPool(*itr)) @@ -737,7 +737,7 @@ void GameEventMgr::GameEventSpawn(int16 event_id) GameObjectData const* data = sObjectMgr.GetGOData(*itr); if (data) { - // negative event id for pool element meaning allow be used in next pool spawn + // negative event id for pool element meaning allow be used in next pool spawn if (event_id < 0) { if (uint16 pool_id = sPoolMgr.IsPartOfAPool(*itr)) diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 019686fab..9120fe4c6 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -454,7 +454,7 @@ void GameObject::AddUniqueUse(Player* player) m_firstUser = player->GetObjectGuid(); m_UniqueUsers.insert(player->GetObjectGuid()); - + } void GameObject::Delete() diff --git a/src/game/GridMap.cpp b/src/game/GridMap.cpp index 8b61206f8..b8869de71 100644 --- a/src/game/GridMap.cpp +++ b/src/game/GridMap.cpp @@ -1035,7 +1035,7 @@ GridMap * TerrainInfo::GetGrid( const float x, const float y ) // half opt method int gx=(int)(32-x/SIZE_OF_GRIDS); //grid x int gy=(int)(32-y/SIZE_OF_GRIDS); //grid y - + //quick check if GridMap already loaded GridMap * pMap = m_GridMaps[gx][gy]; if(!pMap) @@ -1134,7 +1134,7 @@ TerrainManager::~TerrainManager() TerrainInfo * TerrainManager::LoadTerrain(const uint32 mapId) { Guard _guard(*this); - + TerrainInfo * ptr = NULL; TerrainDataMap::const_iterator iter = i_TerrainMap.find(mapId); if(iter == i_TerrainMap.end()) @@ -1179,7 +1179,7 @@ void TerrainManager::UnloadAll() { for (TerrainDataMap::iterator it = i_TerrainMap.begin(); it != i_TerrainMap.end(); ++it) delete it->second; - + i_TerrainMap.clear(); } diff --git a/src/game/GridMap.h b/src/game/GridMap.h index bdea03796..1dfeebcca 100644 --- a/src/game/GridMap.h +++ b/src/game/GridMap.h @@ -245,7 +245,7 @@ class MANGOS_DLL_SPEC TerrainInfo : public Referencable protected: friend class Map; - //load/unload terrain data + //load/unload terrain data GridMap * Load(const uint32 x, const uint32 y); void Unload(const uint32 x, const uint32 y); diff --git a/src/game/ItemHandler.cpp b/src/game/ItemHandler.cpp index ed48f52ab..191553500 100644 --- a/src/game/ItemHandler.cpp +++ b/src/game/ItemHandler.cpp @@ -1132,7 +1132,7 @@ void WorldSession::HandleWrapItemOpcode(WorldPacket& recv_data) } // cheating: non-wrapper wrapper (all empty wrappers is stackable) - if (!(gift->GetProto()->Flags & ITEM_FLAG_WRAPPER) || gift->GetMaxStackCount() == 1) + if (!(gift->GetProto()->Flags & ITEM_FLAG_WRAPPER) || gift->GetMaxStackCount() == 1) { _player->SendEquipError( EQUIP_ERR_ITEM_NOT_FOUND, gift, NULL ); return; diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp index dd7920b64..d0cb585c8 100644 --- a/src/game/Level2.cpp +++ b/src/game/Level2.cpp @@ -2661,7 +2661,7 @@ bool ChatHandler::HandleTicketCommand(char* args) if (num == 0) return false; - // mgr numbering tickets start from 0 + // mgr numbering tickets start from 0 ticket = sTicketMgr.GetGMTicketByOrderPos(num-1); if (!ticket) @@ -2708,7 +2708,7 @@ bool ChatHandler::HandleTicketCommand(char* args) if (num == 0) return false; - // mgr numbering tickets start from 0 + // mgr numbering tickets start from 0 GMTicket* ticket = sTicketMgr.GetGMTicketByOrderPos(num-1); if (!ticket) { @@ -2763,7 +2763,7 @@ bool ChatHandler::HandleDelTicketCommand(char *args) if (num ==0) return false; - // mgr numbering tickets start from 0 + // mgr numbering tickets start from 0 GMTicket* ticket = sTicketMgr.GetGMTicketByOrderPos(num-1); if (!ticket) diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp index ca37a1c7c..6addbfc2a 100644 --- a/src/game/Level3.cpp +++ b/src/game/Level3.cpp @@ -1252,7 +1252,7 @@ bool ChatHandler::HandleAchievementCriteriaAddCommand(char* args) return false; uint32 new_val; - + if (maxValue) new_val = progress < maxValue && maxValue - progress > val ? progress + val : maxValue; else @@ -4604,7 +4604,7 @@ bool ChatHandler::HandleListAurasCommand (char* /*args*/) for (Unit::SpellAuraHolderMap::const_iterator itr = uAuras.begin(); itr != uAuras.end(); ++itr) { bool talent = GetTalentSpellCost(itr->second->GetId()) > 0; - + SpellAuraHolder *holder = itr->second; char const* name = holder->GetSpellProto()->SpellName[GetSessionDbcLocale()]; @@ -4613,7 +4613,7 @@ bool ChatHandler::HandleListAurasCommand (char* /*args*/) Aura *aur = holder->GetAuraByEffectIndex(SpellEffectIndex(i)); if (!aur) continue; - + if (m_session) { std::ostringstream ss_name; diff --git a/src/game/LootHandler.cpp b/src/game/LootHandler.cpp index 2b9bfc2f5..0d480d5cd 100644 --- a/src/game/LootHandler.cpp +++ b/src/game/LootHandler.cpp @@ -448,7 +448,7 @@ void WorldSession::DoLootRelease(ObjectGuid lguid) // normal persistence loot default: { - // must be destroyed only if no loot + // must be destroyed only if no loot if (pItem->loot.isLooted()) { pItem->SetLootState(ITEM_LOOT_REMOVED); diff --git a/src/game/Map.cpp b/src/game/Map.cpp index bbd654381..8748bdc8c 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -267,7 +267,7 @@ bool Map::EnsureGridLoaded(const Cell &cell) //otherwise there is a possibility of infinity chain (grid loading will be called many times for the same grid) //possible scenario: //active object A(loaded with loader.LoadN call and added to the map) - //summons some active object B, while B added to map grid loading called again and so on.. + //summons some active object B, while B added to map grid loading called again and so on.. setGridObjectDataLoaded(true,cell.GridX(), cell.GridY()); ObjectGridLoader loader(*grid, this, cell); loader.LoadN(); diff --git a/src/game/MapManager.cpp b/src/game/MapManager.cpp index 65c1913d0..0e058605b 100644 --- a/src/game/MapManager.cpp +++ b/src/game/MapManager.cpp @@ -92,7 +92,7 @@ Map* MapManager::CreateMap(uint32 id, const WorldObject* obj) MANGOS_ASSERT(obj); //if(!obj->IsInWorld()) sLog.outError("GetMap: called for map %d with object (typeid %d, guid %d, mapid %d, instanceid %d) who is not in world!", id, obj->GetTypeId(), obj->GetGUIDLow(), obj->GetMapId(), obj->GetInstanceId()); Guard _guard(*this); - + Map * m = NULL; const MapEntry* entry = sMapStore.LookupEntry(id); @@ -136,7 +136,7 @@ Map* MapManager::FindMap(uint32 mapid, uint32 instanceId) const MapMapType::const_iterator iter = i_maps.find(MapID(mapid, instanceId)); if(iter == i_maps.end()) return NULL; - + //this is a small workaround for transports if(instanceId == 0 && iter->second->Instanceable()) { diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 4c38ea27d..723449197 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1075,7 +1075,7 @@ void WorldObject::Relocate(float x, float y, float z) } void WorldObject::SetOrientation(float orientation) -{ +{ m_orientation = orientation; if(isType(TYPEMASK_UNIT)) diff --git a/src/game/Object.h b/src/game/Object.h index 86f48907e..9aa64e55f 100644 --- a/src/game/Object.h +++ b/src/game/Object.h @@ -88,7 +88,7 @@ struct WorldLocation //use this class to measure time between world update ticks -//essential for units updating their spells after cells become active +//essential for units updating their spells after cells become active class WorldUpdateCounter { public: @@ -411,7 +411,7 @@ class MANGOS_DLL_SPEC WorldObject : public Object ~UpdateHelper() { } void Update( uint32 time_diff ) - { + { m_obj->Update( m_obj->m_updateTracker.timeElapsed(), time_diff); m_obj->m_updateTracker.Reset(); } diff --git a/src/game/ObjectGuid.cpp b/src/game/ObjectGuid.cpp index cb1c6b47b..59d84785b 100644 --- a/src/game/ObjectGuid.cpp +++ b/src/game/ObjectGuid.cpp @@ -47,7 +47,7 @@ std::string ObjectGuid::GetString() const { std::ostringstream str; str << GetTypeName(); - + if (IsPlayer()) { std::string name; diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 07a2187ad..fdacc2a24 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -8925,7 +8925,7 @@ bool FindCreatureData::operator()( CreatureDataPair const& dataPair ) i_mapDist = new_dist; } - // skip not spawned (in any state), + // skip not spawned (in any state), uint16 pool_id = sPoolMgr.IsPartOfAPool(dataPair.first); if (pool_id && !sPoolMgr.IsSpawnedObject(dataPair.first)) return false; diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index 3aa929459..2e16964e3 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -43,7 +43,7 @@ m_declinedname(NULL), m_petModeFlags(PET_MODE_DEFAULT) if(type == MINI_PET) // always passive charmInfo->SetReactState(REACT_PASSIVE); - else if(type == PROTECTOR_PET) // always defensive + else if(type == PROTECTOR_PET) // always defensive charmInfo->SetReactState(REACT_DEFENSIVE); else if(type == GUARDIAN_PET) // always aggressive charmInfo->SetReactState(REACT_AGGRESSIVE); diff --git a/src/game/PoolManager.cpp b/src/game/PoolManager.cpp index 426047c48..86f57381a 100644 --- a/src/game/PoolManager.cpp +++ b/src/game/PoolManager.cpp @@ -158,7 +158,7 @@ bool PoolGroup::CheckPool() const return true; } -// Method to check event linking +// Method to check event linking template void PoolGroup::CheckEventLinkAndReport(int16 event_id, std::map const& creature2event, std::map const& go2event) const { diff --git a/src/game/ScriptMgr.cpp b/src/game/ScriptMgr.cpp index bd014a450..384b79ce2 100644 --- a/src/game/ScriptMgr.cpp +++ b/src/game/ScriptMgr.cpp @@ -915,7 +915,7 @@ char const* ScriptMgr::GetScriptLibraryVersion() const { if (!m_pGetScriptLibraryVersion) return ""; - + return m_pGetScriptLibraryVersion(); } diff --git a/src/game/SharedDefines.h b/src/game/SharedDefines.h index 32c266854..23b51bdcb 100644 --- a/src/game/SharedDefines.h +++ b/src/game/SharedDefines.h @@ -1947,7 +1947,7 @@ enum CreatureTypeFlags CREATURE_TYPEFLAGS_UNK15 = 0x00004000, // Lua_UnitGUID, client does guid_low &= 0xFF000000 if this flag is set CREATURE_TYPEFLAGS_ENGINEERLOOT = 0x00008000, // Can be looted by engineer CREATURE_TYPEFLAGS_EXOTIC = 0x00010000, // Can be tamed by hunter as exotic pet - CREATURE_TYPEFLAGS_UNK18 = 0x00020000, // related to CreatureDisplayInfo and scaling in some way + CREATURE_TYPEFLAGS_UNK18 = 0x00020000, // related to CreatureDisplayInfo and scaling in some way CREATURE_TYPEFLAGS_UNK19 = 0x00040000, // ? Related to vehicle/siege weapons? CREATURE_TYPEFLAGS_UNK20 = 0x00080000, // may be has something to do with missiles CREATURE_TYPEFLAGS_UNK21 = 0x00100000, // no idea, but it used by client, may be related to rendering diff --git a/src/game/Transports.cpp b/src/game/Transports.cpp index 0cddf0140..08af53d74 100644 --- a/src/game/Transports.cpp +++ b/src/game/Transports.cpp @@ -420,7 +420,7 @@ bool Transport::GenerateWaypoints(uint32 pathid, std::set &mapids) m_next = m_WayPoints.begin(); // will used in MoveToNextWayPoint for init m_curr MoveToNextWayPoint(); // m_curr -> first point - MoveToNextWayPoint(); // skip first point + MoveToNextWayPoint(); // skip first point m_pathTime = timer; diff --git a/src/game/debugcmds.cpp b/src/game/debugcmds.cpp index e6b3ef53e..c19fbd948 100644 --- a/src/game/debugcmds.cpp +++ b/src/game/debugcmds.cpp @@ -548,7 +548,7 @@ bool ChatHandler::HandleDebugGetItemStateCommand(char* args) if (container != bag) { PSendSysMessage("%s in bag %u at slot %u has a different container %s from slot %u!", - item2->GetGuidStr().c_str(), bag->GetSlot(), item2->GetSlot(), + item2->GetGuidStr().c_str(), bag->GetSlot(), item2->GetSlot(), container->GetGuidStr().c_str(), container->GetSlot()); error = true; continue; } @@ -1091,7 +1091,7 @@ bool ChatHandler::HandleDebugSpellModsCommand(char* args) if (!typeStr) return false; - uint16 opcode; + uint16 opcode; if (strncmp(typeStr, "flat", strlen(typeStr)) == 0) opcode = SMSG_SET_FLAT_SPELL_MODIFIER; else if (strncmp(typeStr, "pct", strlen(typeStr)) == 0) diff --git a/src/shared/LockedQueue.h b/src/shared/LockedQueue.h index 487b3bf38..d1d97194f 100644 --- a/src/shared/LockedQueue.h +++ b/src/shared/LockedQueue.h @@ -124,7 +124,7 @@ namespace ACE_Based { this->_lock.release(); } - + ///! Checks if we're empty or not with locks held bool empty() { diff --git a/src/shared/Timer.h b/src/shared/Timer.h index 8ee8dac40..b0acb102b 100644 --- a/src/shared/Timer.h +++ b/src/shared/Timer.h @@ -43,7 +43,7 @@ class WorldTimer return newMSTime - oldMSTime; } - //get last world tick time + //get last world tick time static MANGOS_DLL_SPEC uint32 tickTime(); //get previous world tick time static MANGOS_DLL_SPEC uint32 tickPrevTime(); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 91c027d35..725e74d8e 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11065" + #define REVISION_NR "11066" #endif // __REVISION_NR_H__