mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
Applied new coding standard, see http://github.com/mangos/mangos/wikis/codingstandards for more.
This commit is contained in:
parent
dd6df37c14
commit
899d7dec74
32 changed files with 72 additions and 72 deletions
|
|
@ -269,14 +269,14 @@ void LoadDBCStores(std::string dataPath)
|
||||||
for (uint32 j = 0; j < sSkillLineAbilityStore.GetNumRows(); ++j)
|
for (uint32 j = 0; j < sSkillLineAbilityStore.GetNumRows(); ++j)
|
||||||
{
|
{
|
||||||
SkillLineAbilityEntry const *skillLine = sSkillLineAbilityStore.LookupEntry(j);
|
SkillLineAbilityEntry const *skillLine = sSkillLineAbilityStore.LookupEntry(j);
|
||||||
|
|
||||||
if(!skillLine)
|
if(!skillLine)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
SpellEntry const* spellInfo = sSpellStore.LookupEntry(skillLine->spellId);
|
SpellEntry const* spellInfo = sSpellStore.LookupEntry(skillLine->spellId);
|
||||||
|
|
||||||
if(spellInfo && (spellInfo->Attributes & 0x1D0) == 0x1D0)
|
if(spellInfo && (spellInfo->Attributes & 0x1D0) == 0x1D0)
|
||||||
{
|
{
|
||||||
for (unsigned int i = 1; i < sCreatureFamilyStore.GetNumRows(); ++i)
|
for (unsigned int i = 1; i < sCreatureFamilyStore.GetNumRows(); ++i)
|
||||||
{
|
{
|
||||||
CreatureFamilyEntry const* cFamily = sCreatureFamilyStore.LookupEntry(i);
|
CreatureFamilyEntry const* cFamily = sCreatureFamilyStore.LookupEntry(i);
|
||||||
|
|
@ -440,11 +440,11 @@ void LoadDBCStores(std::string dataPath)
|
||||||
// check at up-to-date DBC files (2425 is last item extended cost added in 2.4.3)
|
// check at up-to-date DBC files (2425 is last item extended cost added in 2.4.3)
|
||||||
// check at up-to-date DBC files (71 is last char title added in 2.4.3)
|
// check at up-to-date DBC files (71 is last char title added in 2.4.3)
|
||||||
// check at up-to-date DBC files (1768 is last area added in 2.4.3)
|
// check at up-to-date DBC files (1768 is last area added in 2.4.3)
|
||||||
if( !sSpellStore.LookupEntry(53085) ||
|
if( !sSpellStore.LookupEntry(53085) ||
|
||||||
!sSkillLineAbilityStore.LookupEntry(17514) ||
|
!sSkillLineAbilityStore.LookupEntry(17514) ||
|
||||||
!sMapStore.LookupEntry(598) ||
|
!sMapStore.LookupEntry(598) ||
|
||||||
!sGemPropertiesStore.LookupEntry(1127) ||
|
!sGemPropertiesStore.LookupEntry(1127) ||
|
||||||
!sItemExtendedCostStore.LookupEntry(2425) ||
|
!sItemExtendedCostStore.LookupEntry(2425) ||
|
||||||
!sCharTitlesStore.LookupEntry(71) ||
|
!sCharTitlesStore.LookupEntry(71) ||
|
||||||
!sAreaStore.LookupEntry(1768) )
|
!sAreaStore.LookupEntry(1768) )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -155,8 +155,8 @@ struct CreatureDisplayInfoEntry
|
||||||
struct CreatureFamilyEntry
|
struct CreatureFamilyEntry
|
||||||
{
|
{
|
||||||
uint32 ID; // 0
|
uint32 ID; // 0
|
||||||
float minScale; // 1
|
float minScale; // 1
|
||||||
uint32 minScaleLevel; // 2 0/1
|
uint32 minScaleLevel; // 2 0/1
|
||||||
float maxScale; // 3
|
float maxScale; // 3
|
||||||
uint32 maxScaleLevel; // 4 0/60
|
uint32 maxScaleLevel; // 4 0/60
|
||||||
uint32 skillLine[2]; // 5-6
|
uint32 skillLine[2]; // 5-6
|
||||||
|
|
@ -430,7 +430,7 @@ struct MapEntry
|
||||||
|
|
||||||
bool IsMountAllowed() const
|
bool IsMountAllowed() const
|
||||||
{
|
{
|
||||||
return !IsDungeon() ||
|
return !IsDungeon() ||
|
||||||
MapID==568 || MapID==309 || MapID==209 || MapID==534 ||
|
MapID==568 || MapID==309 || MapID==209 || MapID==534 ||
|
||||||
MapID==560 || MapID==509 || MapID==269;
|
MapID==560 || MapID==509 || MapID==269;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -27,37 +27,37 @@ AM_CPPFLAGS = $(MANGOS_INCLUDES) -I$(top_builddir)/src/shared -I$(srcdir) -I$(sr
|
||||||
noinst_LIBRARIES = libmangosdatabase.a
|
noinst_LIBRARIES = libmangosdatabase.a
|
||||||
|
|
||||||
libmangosdatabase_a_SOURCES = \
|
libmangosdatabase_a_SOURCES = \
|
||||||
DBCStores.cpp \
|
DBCStores.cpp \
|
||||||
DBCStores.h \
|
DBCStores.h \
|
||||||
DBCStructure.h \
|
DBCStructure.h \
|
||||||
DBCfmt.cpp \
|
DBCfmt.cpp \
|
||||||
Database.cpp \
|
Database.cpp \
|
||||||
Database.h \
|
Database.h \
|
||||||
DatabaseEnv.h \
|
DatabaseEnv.h \
|
||||||
DatabaseImpl.h \
|
DatabaseImpl.h \
|
||||||
DatabaseMysql.cpp \
|
DatabaseMysql.cpp \
|
||||||
DatabasePostgre.cpp \
|
DatabasePostgre.cpp \
|
||||||
DatabaseMysql.h \
|
DatabaseMysql.h \
|
||||||
DatabasePostgre.h \
|
DatabasePostgre.h \
|
||||||
DatabaseSqlite.cpp \
|
DatabaseSqlite.cpp \
|
||||||
DatabaseSqlite.h \
|
DatabaseSqlite.h \
|
||||||
DBCEnums.h \
|
DBCEnums.h \
|
||||||
Field.cpp \
|
Field.cpp \
|
||||||
Field.h \
|
Field.h \
|
||||||
MySQLDelayThread.h \
|
MySQLDelayThread.h \
|
||||||
PGSQLDelayThread.h \
|
PGSQLDelayThread.h \
|
||||||
QueryResult.h \
|
QueryResult.h \
|
||||||
QueryResultMysql.cpp \
|
QueryResultMysql.cpp \
|
||||||
QueryResultMysql.h \
|
QueryResultMysql.h \
|
||||||
QueryResultPostgre.cpp \
|
QueryResultPostgre.cpp \
|
||||||
QueryResultPostgre.h \
|
QueryResultPostgre.h \
|
||||||
QueryResultSqlite.cpp \
|
QueryResultSqlite.cpp \
|
||||||
QueryResultSqlite.h \
|
QueryResultSqlite.h \
|
||||||
SQLStorage.cpp \
|
SQLStorage.cpp \
|
||||||
SQLStorage.h \
|
SQLStorage.h \
|
||||||
SqlDelayThread.cpp \
|
SqlDelayThread.cpp \
|
||||||
SqlDelayThread.h \
|
SqlDelayThread.h \
|
||||||
SqlOperations.cpp \
|
SqlOperations.cpp \
|
||||||
SqlOperations.h \
|
SqlOperations.h \
|
||||||
dbcfile.cpp \
|
dbcfile.cpp \
|
||||||
dbcfile.h
|
dbcfile.h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue