SHARE
TWEET

Untitled

a guest Apr 21st, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.      LoadDBC(availableDbcLocales, bad_dbc_files, sMailTemplateStore,           dbcPath, "MailTemplate.dbc");
  3.      LoadDBC(availableDbcLocales, bad_dbc_files, sMapStore,                    dbcPath, "Map.dbc");
  4. +    const_cast<MapEntry*>(sMapStore.LookupEntry(44))->map_type = MAP_RAID; // old sm hack
  5.      LoadDBC(availableDbcLocales, bad_dbc_files, sMapDifficultyStore,          dbcPath, "MapDifficulty.dbc");
  6.      // fill data
  7.      for (uint32 i = 1; i < sMapDifficultyStore.GetNumRows(); ++i)
  8.          if (MapDifficultyEntry const* entry = sMapDifficultyStore.LookupEntry(i))
  9. -            sMapDifficultyMap[MAKE_PAIR32(entry->MapId, entry->Difficulty)] = MapDifficulty(entry->Id, entry->resetTime, entry->maxPlayers, entry->areaTriggerText[0] != '\0');
  10. +            if (entry->MapId == 44) // old sm hack
  11. +                sMapDifficultyMap[MAKE_PAIR32(entry->MapId, entry->Difficulty)] = MapDifficulty(entry->Id, 604800, entry->maxPlayers, entry->areaTriggerText[0] != '\0');
  12. +            else
  13. +                sMapDifficultyMap[MAKE_PAIR32(entry->MapId, entry->Difficulty)] = MapDifficulty(entry->Id, entry->resetTime, entry->maxPlayers, entry->areaTriggerText[0] != '\0');
  14.      sMapDifficultyStore.Clear();
  15.  
  16.      LoadDBC(availableDbcLocales, bad_dbc_files, sMovieStore,                  dbcPath, "Movie.dbc");
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top