mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix all build warnings
- vk_utils.hpp: mark unused 'msg' parameter with [[maybe_unused]] - world_packets.cpp: write exactMatch field to auction list packet (was accepted as parameter but never serialized) - game_screen.cpp: remove unused bagIcons array and unused info variable - talent_screen.cpp: remove unused nextRank and pMin variables
This commit is contained in:
parent
a825450048
commit
997318ae06
4 changed files with 2 additions and 7 deletions
|
|
@ -48,7 +48,7 @@ AllocatedBuffer uploadBuffer(VkContext& ctx, const void* data, VkDeviceSize size
|
|||
VkBufferUsageFlags usage);
|
||||
|
||||
// Check VkResult and log on failure
|
||||
inline bool vkCheck(VkResult result, const char* msg) {
|
||||
inline bool vkCheck(VkResult result, [[maybe_unused]] const char* msg) {
|
||||
if (result != VK_SUCCESS) {
|
||||
// Caller should log the message
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -4276,6 +4276,7 @@ network::Packet AuctionListItemsPacket::build(
|
|||
p.writeUInt32(quality);
|
||||
p.writeUInt8(usableOnly);
|
||||
p.writeUInt8(0); // getAll (0 = normal search)
|
||||
p.writeUInt8(exactMatch);
|
||||
// Sort columns (0 = none)
|
||||
p.writeUInt8(0);
|
||||
return p;
|
||||
|
|
|
|||
|
|
@ -3766,7 +3766,6 @@ void GameScreen::renderBagBar(game::GameHandler& gameHandler) {
|
|||
|
||||
// Track bag slot screen rects for drop detection
|
||||
ImVec2 bagSlotMins[4], bagSlotMaxs[4];
|
||||
VkDescriptorSet bagIcons[4] = {};
|
||||
|
||||
// Slots 1-4: Bag slots (leftmost)
|
||||
for (int i = 0; i < 4; ++i) {
|
||||
|
|
@ -3780,8 +3779,6 @@ void GameScreen::renderBagBar(game::GameHandler& gameHandler) {
|
|||
if (!bagItem.empty() && bagItem.item.displayInfoId != 0) {
|
||||
bagIcon = inventoryScreen.getItemIcon(bagItem.item.displayInfoId);
|
||||
}
|
||||
bagIcons[i] = bagIcon;
|
||||
|
||||
// Render the slot as an invisible button so we control all interaction
|
||||
ImVec2 cpos = ImGui::GetCursorScreenPos();
|
||||
ImGui::InvisibleButton("##bagSlot", ImVec2(slotSize, slotSize));
|
||||
|
|
@ -7483,7 +7480,6 @@ void GameScreen::renderBankWindow(game::GameHandler& gameHandler) {
|
|||
if (slot.empty()) {
|
||||
ImGui::Button("##bank", ImVec2(42, 42));
|
||||
} else {
|
||||
auto* info = gameHandler.getItemInfo(slot.item.itemId);
|
||||
ImVec4 qc = InventoryScreen::getQualityColor(slot.item.quality);
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(qc.x * 0.3f, qc.y * 0.3f, qc.z * 0.3f, 0.8f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(qc.x * 0.5f, qc.y * 0.5f, qc.z * 0.5f, 0.9f));
|
||||
|
|
|
|||
|
|
@ -202,7 +202,6 @@ void TalentScreen::renderTalent(game::GameHandler& gameHandler,
|
|||
auto* assetManager = core::Application::getInstance().getAssetManager();
|
||||
|
||||
uint8_t currentRank = gameHandler.getTalentRank(talent.talentId);
|
||||
uint8_t nextRank = currentRank + 1;
|
||||
|
||||
// Check if can learn
|
||||
bool canLearn = currentRank < talent.maxRank &&
|
||||
|
|
@ -297,7 +296,6 @@ void TalentScreen::renderTalent(game::GameHandler& gameHandler,
|
|||
|
||||
// Rank indicator overlay
|
||||
if (talent.maxRank > 1) {
|
||||
ImVec2 pMin = ImGui::GetItemRectMin();
|
||||
ImVec2 pMax = ImGui::GetItemRectMax();
|
||||
auto* drawList = ImGui::GetWindowDrawList();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue