Skip to content

Commit

Permalink
Merge pull request #873 from WALLOFJUSTICE/dev23-q4
Browse files Browse the repository at this point in the history
* compendium modded hotfix
  • Loading branch information
WALLOFJUSTICE authored Jan 9, 2025
2 parents 5782365 + bb63a52 commit d76e7bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/init_game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ void initGameDatafiles(bool moddedReload)
CompendiumEntries.readMagicTranslationsFromFile();
Compendium_t::AchievementData_t::readContentsLang();
Compendium_t::Events_t::readEventsTranslations();
Compendium_t::readUnlocksSaveData();
Compendium_t::Events_t::loadItemsSaveData();
if ( !moddedReload )
{
Compendium_t::readUnlocksSaveData();
Compendium_t::Events_t::loadItemsSaveData();
}
CompendiumEntries.readModelLimbsFromFile("monster");
CompendiumEntries.readModelLimbsFromFile("world");
CompendiumEntries.readModelLimbsFromFile("codex");
Expand Down
1 change: 1 addition & 0 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5404,6 +5404,7 @@ static std::unordered_map<Uint32, void(*)()> clientPacketHandlers = {
Compendium_t::Events_t::clientReceiveData.erase(clientSequence);

Compendium_t::Events_t::writeItemsSaveData();
Compendium_t::writeUnlocksSaveData();

// reply got packet
strcpy((char*)net_packet->data, "CMPD");
Expand Down

0 comments on commit d76e7bb

Please sign in to comment.