Browse Source

Fix gcc/MSVC compiler warnings

pull/7687/head
staphen 1 year ago committed by Gleb Mazovetskiy
parent
commit
ba773259cd
  1. 1
      3rdParty/libzt/CMakeLists.txt
  2. 2
      Source/engine/path.cpp
  3. 1
      Source/items.cpp

1
3rdParty/libzt/CMakeLists.txt vendored

@ -22,6 +22,7 @@ foreach(
lwip_obj
miniupnpc_obj
zto_pic
zt_pic
natpmp_pic
lwip_pic
miniupnpc_pic

2
Source/engine/path.cpp

@ -170,7 +170,7 @@ int ReconstructPath(const ExploredNodes &explored, PointT dest, int8_t *path, si
}
std::reverse(path, path + len);
std::fill(path + len, path + maxPathLength, -1);
return len;
return static_cast<int>(len);
}
} // namespace

1
Source/items.cpp

@ -4271,7 +4271,6 @@ void UseItem(Player &player, item_misc_id mid, SpellID spellID, int spellFrom)
if (ControlMode == ControlTypes::KeyboardAndMouse && GetSpellData(spellID).isTargeted()) {
prepareSpellID = spellID;
} else {
const int spellLevel = player.GetSpellLevel(spellID);
// Find a valid target for the spell because tile coords
// will be validated when processing the network message
Point target = cursPosition;

Loading…
Cancel
Save