|
|
|
@ -1,14 +1,8 @@
|
|
|
|
|
#include "referenceinterface.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../mwbase/world.hpp"
|
|
|
|
|
#include "../mwbase/environment.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../mwmechanics/actorutil.hpp"
|
|
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
|
{
|
|
|
|
|
ReferenceInterface::ReferenceInterface()
|
|
|
|
|
: mCurrentPlayerCell(NULL)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -18,8 +12,6 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
void ReferenceInterface::checkReferenceAvailable()
|
|
|
|
|
{
|
|
|
|
|
MWWorld::CellStore* playerCell = MWMechanics::getPlayer().getCell();
|
|
|
|
|
|
|
|
|
|
// check if count of the reference has become 0
|
|
|
|
|
if (!mPtr.isEmpty() && mPtr.getRefData().getCount() == 0)
|
|
|
|
|
{
|
|
|
|
@ -29,7 +21,5 @@ namespace MWGui
|
|
|
|
|
onReferenceUnavailable();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mCurrentPlayerCell = playerCell;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|