mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-29 03:36:40 +00:00
Clang warning fixes
This commit is contained in:
parent
698575dc1b
commit
2f6075329b
3 changed files with 1 additions and 24 deletions
|
@ -370,8 +370,6 @@ void CSVRender::InstanceMode::dropEvent (QDropEvent* event)
|
||||||
selection.add (CSMWorld::CellCoordinates::fromId (cellId).first);
|
selection.add (CSMWorld::CellCoordinates::fromId (cellId).first);
|
||||||
paged->setCellSelection (selection);
|
paged->setCellSelection (selection);
|
||||||
}
|
}
|
||||||
|
|
||||||
noCell = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (CSVRender::PagedWorldspaceWidget *paged =
|
else if (CSVRender::PagedWorldspaceWidget *paged =
|
||||||
|
|
|
@ -135,27 +135,6 @@ namespace MWGui
|
||||||
MWMechanics::CreatureStats& creatureStats = player.getClass().getCreatureStats(player);
|
MWMechanics::CreatureStats& creatureStats = player.getClass().getCreatureStats(player);
|
||||||
MWMechanics::NpcStats& pcStats = player.getClass().getNpcStats(player);
|
MWMechanics::NpcStats& pcStats = player.getClass().getNpcStats(player);
|
||||||
|
|
||||||
const ESM::NPC *playerData = player.get<ESM::NPC>()->mBase;
|
|
||||||
|
|
||||||
// set class image
|
|
||||||
const ESM::Class *cls =
|
|
||||||
world->getStore().get<ESM::Class>().find(playerData->mClass);
|
|
||||||
|
|
||||||
if(world->getStore().get<ESM::Class>().isDynamic(cls->mId))
|
|
||||||
{
|
|
||||||
// Choosing Stealth specialization and Speed/Agility as attributes, if possible. Otherwise fall back to first class found.
|
|
||||||
MWWorld::SharedIterator<ESM::Class> it = world->getStore().get<ESM::Class>().begin();
|
|
||||||
for(; it != world->getStore().get<ESM::Class>().end(); ++it)
|
|
||||||
{
|
|
||||||
if(it->mData.mIsPlayable && it->mData.mSpecialization == 2 && it->mData.mAttribute[0] == 4 && it->mData.mAttribute[1] == 3)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (it == world->getStore().get<ESM::Class>().end())
|
|
||||||
it = world->getStore().get<ESM::Class>().begin();
|
|
||||||
if (it != world->getStore().get<ESM::Class>().end())
|
|
||||||
cls = &*it;
|
|
||||||
}
|
|
||||||
|
|
||||||
setClassImage(mClassImage, getLevelupClassImage(pcStats.getSkillIncreasesForSpecialization(0),
|
setClassImage(mClassImage, getLevelupClassImage(pcStats.getSkillIncreasesForSpecialization(0),
|
||||||
pcStats.getSkillIncreasesForSpecialization(1),
|
pcStats.getSkillIncreasesForSpecialization(1),
|
||||||
pcStats.getSkillIncreasesForSpecialization(2)));
|
pcStats.getSkillIncreasesForSpecialization(2)));
|
||||||
|
|
Loading…
Reference in a new issue