diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/DataStores/DBCStores.cpp | 2 | ||||
| -rw-r--r-- | src/server/game/DataStores/DBCStores.h | 1 | ||||
| -rw-r--r-- | src/server/game/DataStores/DBCStructure.h | 22 | ||||
| -rw-r--r-- | src/server/game/DataStores/DBCfmt.h | 1 | ||||
| -rw-r--r-- | src/server/game/Spells/SpellInfo.cpp | 6 | 
5 files changed, 6 insertions, 26 deletions
diff --git a/src/server/game/DataStores/DBCStores.cpp b/src/server/game/DataStores/DBCStores.cpp index 5f49ad4f6d8..6bf5b49b297 100644 --- a/src/server/game/DataStores/DBCStores.cpp +++ b/src/server/game/DataStores/DBCStores.cpp @@ -52,7 +52,6 @@ typedef std::map<WMOAreaTableTripple, WMOAreaTableEntry const*> WMOAreaInfoByTri  DBCStorage <AreaTableEntry> sAreaStore(AreaTableEntryfmt);  DBCStorage <AreaGroupEntry> sAreaGroupStore(AreaGroupEntryfmt); -DBCStorage <AreaPOIEntry> sAreaPOIStore(AreaPOIEntryfmt);  static AreaFlagByAreaID sAreaFlagByAreaID;  static AreaFlagByMapID sAreaFlagByMapID;                    // for instances without generated *.map files @@ -348,7 +347,6 @@ void LoadDBCStores(const std::string& dataPath)      LoadDBC(availableDbcLocales, bad_dbc_files, sAchievementCriteriaStore,    dbcPath, "Achievement_Criteria.dbc");//15595      LoadDBC(availableDbcLocales, bad_dbc_files, sAreaTriggerStore,            dbcPath, "AreaTrigger.dbc");//15595      LoadDBC(availableDbcLocales, bad_dbc_files, sAreaGroupStore,              dbcPath, "AreaGroup.dbc");//15595 -    LoadDBC(availableDbcLocales, bad_dbc_files, sAreaPOIStore,                dbcPath, "AreaPOI.dbc");//15595      LoadDBC(availableDbcLocales, bad_dbc_files, sAuctionHouseStore,           dbcPath, "AuctionHouse.dbc");//15595      LoadDBC(availableDbcLocales, bad_dbc_files, sArmorLocationStore,          dbcPath, "ArmorLocation.dbc");//15595      LoadDBC(availableDbcLocales, bad_dbc_files, sBankBagSlotPricesStore,      dbcPath, "BankBagSlotPrices.dbc");//15595 diff --git a/src/server/game/DataStores/DBCStores.h b/src/server/game/DataStores/DBCStores.h index 885f6041a60..3fc688d23ff 100644 --- a/src/server/game/DataStores/DBCStores.h +++ b/src/server/game/DataStores/DBCStores.h @@ -95,7 +95,6 @@ extern DBCStorage <AchievementEntry>             sAchievementStore;  extern DBCStorage <AchievementCriteriaEntry>     sAchievementCriteriaStore;  extern DBCStorage <AreaTableEntry>               sAreaStore;// recommend access using functions  extern DBCStorage <AreaGroupEntry>               sAreaGroupStore; -extern DBCStorage <AreaPOIEntry>                 sAreaPOIStore;  extern DBCStorage <AreaTriggerEntry>             sAreaTriggerStore;  extern DBCStorage <ArmorLocationEntry>           sArmorLocationStore;  extern DBCStorage <AuctionHouseEntry>            sAuctionHouseStore; diff --git a/src/server/game/DataStores/DBCStructure.h b/src/server/game/DataStores/DBCStructure.h index 1edba075bea..8798a328022 100644 --- a/src/server/game/DataStores/DBCStructure.h +++ b/src/server/game/DataStores/DBCStructure.h @@ -572,25 +572,9 @@ struct AreaTableEntry  struct AreaGroupEntry  { -    uint32  AreaGroupId;                                    // 0 -    uint32  AreaId[MAX_GROUP_AREA_IDS];                     // 1-6 -    uint32  nextGroup;                                      // 7 index of next group -}; - -struct AreaPOIEntry -{ -    uint32 id;              //0 -    uint32 icon[11];        //1-11 -    float x;                //12 -    float y;                //13 -    uint32 mapId;           //14 -    //uint32 val1;          //15 -    uint32 zoneId;          //16 -    //char* name;           //17 - name -    //char* name2;          //18 - name2 -    uint32 worldState;      //19 -    //uint32 val2;          //20 -    //uint32 unk;           //21 +    uint32  ID;                                             // 0 +    uint32  AreaID[MAX_GROUP_AREA_IDS];                     // 1-6 +    uint32  NextAreaID;                                     // 7 index of next group  };  struct AreaTriggerEntry diff --git a/src/server/game/DataStores/DBCfmt.h b/src/server/game/DataStores/DBCfmt.h index ca4232da630..ce348d05496 100644 --- a/src/server/game/DataStores/DBCfmt.h +++ b/src/server/game/DataStores/DBCfmt.h @@ -28,7 +28,6 @@ const std::string CustomAchievementIndex = "ID";  char const AchievementCriteriafmt[] = "niiiliiiisiiiiixxiiiiii";  char const AreaTableEntryfmt[] = "iiinixxxxxisiiiiiffixxxxxx";  char const AreaGroupEntryfmt[] = "niiiiiii"; -char const AreaPOIEntryfmt[] = "niiiiiiiiiiiffixixxixx";  char const AreaTriggerEntryfmt[] = "nifffxxxfffff";  char const ArmorLocationfmt[] = "nfffff";  char const AuctionHouseEntryfmt[] = "niiix"; diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index d2d92f50be1..8eb358cdcbb 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -1529,12 +1529,12 @@ SpellCastResult SpellInfo::CheckLocation(uint32 map_id, uint32 zone_id, uint32 a          while (groupEntry)          {              for (uint8 i = 0; i < MAX_GROUP_AREA_IDS; ++i) -                if (groupEntry->AreaId[i] == zone_id || groupEntry->AreaId[i] == area_id) +                if (groupEntry->AreaID[i] == zone_id || groupEntry->AreaID[i] == area_id)                      found = true; -            if (found || !groupEntry->nextGroup) +            if (found || !groupEntry->NextAreaID)                  break;              // Try search in next group -            groupEntry = sAreaGroupStore.LookupEntry(groupEntry->nextGroup); +            groupEntry = sAreaGroupStore.LookupEntry(groupEntry->NextAreaID);          }          if (!found)  | 
