mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-27 14:37:04 +00:00
Remove write-only variable.
This commit is contained in:
parent
68799cfd2b
commit
5a1a987f6c
@ -530,12 +530,10 @@ namespace MWGui
|
|||||||
markerTexture = "textures\\detect_enchantment_icon.dds";
|
markerTexture = "textures\\detect_enchantment_icon.dds";
|
||||||
}
|
}
|
||||||
|
|
||||||
int counter = 0;
|
|
||||||
for (const MWWorld::Ptr& ptr : markers)
|
for (const MWWorld::Ptr& ptr : markers)
|
||||||
{
|
{
|
||||||
const ESM::Position& worldPos = ptr.getRefData().getPosition();
|
const ESM::Position& worldPos = ptr.getRefData().getPosition();
|
||||||
MarkerUserData markerPos (mLocalMapRender);
|
MarkerUserData markerPos (mLocalMapRender);
|
||||||
++counter;
|
|
||||||
MyGUI::ImageBox* markerWidget = mLocalMap->createWidget<MyGUI::ImageBox>("ImageBox",
|
MyGUI::ImageBox* markerWidget = mLocalMap->createWidget<MyGUI::ImageBox>("ImageBox",
|
||||||
getMarkerCoordinates(worldPos.pos[0], worldPos.pos[1], markerPos, 8), MyGUI::Align::Default);
|
getMarkerCoordinates(worldPos.pos[0], worldPos.pos[1], markerPos, 8), MyGUI::Align::Default);
|
||||||
markerWidget->setDepth(Local_MarkerAboveFogLayer);
|
markerWidget->setDepth(Local_MarkerAboveFogLayer);
|
||||||
|
@ -160,13 +160,11 @@ namespace MWGui
|
|||||||
|
|
||||||
// try to go 1 level up until there is a widget that has tooltip
|
// try to go 1 level up until there is a widget that has tooltip
|
||||||
// this is necessary because some skin elements are actually separate widgets
|
// this is necessary because some skin elements are actually separate widgets
|
||||||
int i=0;
|
|
||||||
while (!focus->isUserString("ToolTipType"))
|
while (!focus->isUserString("ToolTipType"))
|
||||||
{
|
{
|
||||||
focus = focus->getParent();
|
focus = focus->getParent();
|
||||||
if (!focus)
|
if (!focus)
|
||||||
return;
|
return;
|
||||||
++i;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string type = focus->getUserString("ToolTipType");
|
std::string type = focus->getUserString("ToolTipType");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user