mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
removed unnecessary code
This commit is contained in:
parent
c5d685c780
commit
6a0cb32b7e
@ -424,19 +424,16 @@ void ContainerWindow::onTakeAllButtonClicked(MyGUI::Widget* _sender)
|
|||||||
int i=0;
|
int i=0;
|
||||||
for (MWWorld::ContainerStoreIterator iter (containerStore.begin()); iter!=containerStore.end(); ++iter)
|
for (MWWorld::ContainerStoreIterator iter (containerStore.begin()); iter!=containerStore.end(); ++iter)
|
||||||
{
|
{
|
||||||
if(iter->getRefData().getCount() > 0)
|
playerStore.add(*iter);
|
||||||
|
|
||||||
|
if (i==0)
|
||||||
{
|
{
|
||||||
playerStore.add(*iter);
|
// play the sound of the first object
|
||||||
|
std::string sound = MWWorld::Class::get(*iter).getUpSoundId(*iter);
|
||||||
if (i==0)
|
MWBase::Environment::get().getSoundManager()->playSound (sound, 1.0, 1.0);
|
||||||
{
|
|
||||||
// play the sound of the first object
|
|
||||||
std::string sound = MWWorld::Class::get(*iter).getUpSoundId(*iter);
|
|
||||||
MWBase::Environment::get().getSoundManager()->playSound (sound, 1.0, 1.0);
|
|
||||||
}
|
|
||||||
|
|
||||||
++i;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
++i;
|
||||||
}
|
}
|
||||||
|
|
||||||
containerStore.clear();
|
containerStore.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user