Skip to content

Commit

Permalink
Merge branch 'opentibiabr:develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Foulwerp committed Jun 7, 2021
2 parents c69c2e6 + b775e75 commit 09c3689
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions recompile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ then
echo "Clean build directory"
rm -rf *
echo "Configuring"
cmake ..
cmake -DCMAKE_TOOLCHAIN_FILE=../../vcpkg/scripts/buildsystems/vcpkg.cmake ..
else
mkdir "build" && cd build
cmake ..
cmake -DCMAKE_TOOLCHAIN_FILE=../../vcpkg/scripts/buildsystems/vcpkg.cmake ..
fi

make -j$(nproc) || exit 1
Expand All @@ -24,5 +24,5 @@ else
echo "Saving old build"
mv ./otbr ./otbr.old
fi
cp ./build/otbr ./otbr
cp ./build/bin/otbr ./otbr
fi
6 changes: 5 additions & 1 deletion src/items/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,11 @@ std::string Item::getDescription(const ItemType& it, int32_t lookDistance,
}

if (it.showCharges) {
s << " that has " << subType << " charge" << (subType != 1 ? "s" : "") << " left";
if (subType == 0){
s << " that has " << it.charges << " charge" << (subType != 1 ? "s" : "") << " left";
} else{
s << " that has " << subType << " charge" << (subType != 1 ? "s" : "") << " left";
}
}

if (it.showDuration) {
Expand Down
2 changes: 1 addition & 1 deletion src/server/network/protocol/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ void ProtocolGame::logout(bool displayEffect, bool forced)
}
}

sendSessionEndInformation(forced ? SESSION_END_FORCECLOSE : SESSION_END_LOGOUT);
sendSessionEndInformation(SESSION_END_LOGOUT2);

g_game.removeCreature(player);
}
Expand Down
4 changes: 2 additions & 2 deletions src/utils/enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -1070,10 +1070,10 @@ enum Webhook_Colors_t : uint32_t {
enum SessionEndInformations : uint8_t {
// I'm guessing unknown types are ban/protocol error or something
// but since there aren't any difference from logout should we care?
SESSION_END_LOGOUT,
SESSION_END_LOGOUT, // work only with standard logout
SESSION_END_UNK2,
SESSION_END_FORCECLOSE,
SESSION_END_UNK3,
SESSION_END_LOGOUT2, // work with standard logout and offline training logout
};

/**
Expand Down

0 comments on commit 09c3689

Please sign in to comment.