Skip to content

Commit

Permalink
fixes here
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyx14 committed Dec 25, 2016
1 parent 9b349e1 commit c8d69fc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions path_7_7/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ set(tfs_SRC
${CMAKE_CURRENT_LIST_DIR}/scheduler.cpp
${CMAKE_CURRENT_LIST_DIR}/scriptmanager.cpp
${CMAKE_CURRENT_LIST_DIR}/server.cpp
${CMAKE_CURRENT_LIST_DIR}/signals.cpp
${CMAKE_CURRENT_LIST_DIR}/spawn.cpp
${CMAKE_CURRENT_LIST_DIR}/spells.cpp
${CMAKE_CURRENT_LIST_DIR}/talkaction.cpp
Expand Down
3 changes: 3 additions & 0 deletions path_7_7/src/game.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,9 @@ class Game
Item* getUniqueItem(uint16_t uniqueId);
bool addUniqueItem(uint16_t uniqueId, Item* item);
void removeUniqueItem(uint16_t uniqueId);
void reloadCommands() {
commands.reload();
}

bool hasEffect(uint8_t effectId);
bool hasDistanceEffect(uint8_t effectId);
Expand Down
6 changes: 0 additions & 6 deletions path_7_7/src/itemloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ enum clientVersion_t {
CLIENT_VERSION_770 = 3,
CLIENT_VERSION_771 = 3,
CLIENT_VERSION_772 = 3,
CLIENT_VERSION_780 = 4,
CLIENT_VERSION_790 = 5,
CLIENT_VERSION_792 = 6,
CLIENT_VERSION_800 = 7,
CLIENT_VERSION_810 = 8,
CLIENT_VERSION_811 = 9,
};

enum rootattrib_ {
Expand Down
4 changes: 4 additions & 0 deletions path_7_7/src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ Player::~Player()
it.second->decrementReferenceCounter();
}

for (const auto& it : rewardMap) {
it.second->decrementReferenceCounter();
}

inbox->decrementReferenceCounter();

setWriteItem(nullptr);
Expand Down
3 changes: 3 additions & 0 deletions path_7_7/src/signals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ void Signals::sighupHandler()
g_config.reload();
std::cout << "Reloaded config." << std::endl;

g_game.reloadCommands();
std::cout << "Reloaded commands." << std::endl;

g_creatureEvents->reload();
std::cout << "Reloaded creature scripts." << std::endl;

Expand Down

0 comments on commit c8d69fc

Please sign in to comment.