Changeset 78 for trunk/src/shared
- Timestamp:
- 11/19/08 13:32:10 (17 years ago)
- Location:
- trunk/src/shared
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shared/ByteBuffer.h
r44 r78 202 202 } 203 203 204 uint8 operator[](size_t pos) 204 uint8 operator[](size_t pos) const 205 205 { 206 206 return read<uint8>(pos); … … 310 310 memcpy(&_storage[pos], src, cnt); 311 311 } 312 void print_storage() 312 void print_storage() const 313 313 { 314 314 if(!sLog.IsOutDebug()) // optimize disabled debug output … … 321 321 } 322 322 323 void textlike() 323 void textlike() const 324 324 { 325 325 if(!sLog.IsOutDebug()) // optimize disabled debug output … … 332 332 } 333 333 334 void hexlike() 334 void hexlike() const 335 335 { 336 336 if(!sLog.IsOutDebug()) // optimize disabled debug output -
trunk/src/shared/Database/DBCStores.cpp
r44 r78 555 555 556 556 MapEntry const* mapEntry = sMapStore.LookupEntry(mapid); 557 return (!mapEntry || !mapEntry->IsExpansionMap()) ? CONTENT_1_60 : CONTENT_61_70; 557 if(!mapEntry) 558 return CONTENT_1_60; 559 560 switch(mapEntry->Expansion()) 561 { 562 default: return CONTENT_1_60; 563 case 1: return CONTENT_61_70; 564 case 2: return CONTENT_71_80; 565 } 558 566 } 559 567 -
trunk/src/shared/Database/DBCStores.h
r44 r78 45 45 { 46 46 CONTENT_1_60 = 0, 47 CONTENT_61_70 47 CONTENT_61_70, 48 CONTENT_71_80 48 49 }; 49 50 ContentLevels GetContentLevelsForMapAndZone(uint32 mapid, uint32 zoneId); -
trunk/src/shared/Database/DBCStructure.h
r44 r78 180 180 // 64 string flags, unused 181 181 // 65-67 unused 182 //uint32 addon // 68 (0 - original race, 1 - tbc addon, ...) unused182 uint32 addon; // 68 (0 - original race, 1 - tbc addon, ...) 183 183 }; 184 184 … … 474 474 475 475 // Helpers 476 bool IsExpansionMap() const { return addon != 0; }476 uint32 Expansion() const { return addon; } 477 477 478 478 -
trunk/src/shared/Database/DBCfmt.cpp
r44 r78 28 28 //const char ChrClassesEntryfmt[]="nxixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxix"; 29 29 const char ChrClassesEntryfmt[]="nxixssssssssssssssssxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxix"; 30 const char ChrRacesEntryfmt[]="nxixiixxixxxxissssssssssssssssxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x";30 const char ChrRacesEntryfmt[]="nxixiixxixxxxissssssssssssssssxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxi"; 31 31 const char CreatureDisplayInfofmt[]="nxxxfxxxxxxxxx"; 32 32 const char CreatureFamilyfmt[]="nfifiiiissssssssssssssssxx";