[Client] Fix warnings

pull/249/merge
Koncord 8 years ago
parent b2339f2f9a
commit 52349278e9

@ -27,6 +27,11 @@ mwmp::Cell::Cell(MWWorld::CellStore* cellStore)
updateTimer = 0; updateTimer = 0;
} }
Cell::~Cell()
{
}
void Cell::updateLocal(bool forceUpdate) void Cell::updateLocal(bool forceUpdate)
{ {
if (localActors.empty()) if (localActors.empty())

@ -13,6 +13,7 @@ namespace mwmp
public: public:
Cell(MWWorld::CellStore* cellStore); Cell(MWWorld::CellStore* cellStore);
virtual ~Cell();
void updateLocal(bool forceUpdate); void updateLocal(bool forceUpdate);
void updateDedicated(float dt); void updateDedicated(float dt);

@ -23,10 +23,15 @@ mwmp::CellController::CellController()
} }
CellController::~CellController()
{
}
void CellController::updateLocal(bool forceUpdate) void CellController::updateLocal(bool forceUpdate)
{ {
// Loop through Cells, deleting inactive ones and updating LocalActors in active ones // Loop through Cells, deleting inactive ones and updating LocalActors in active ones
for (std::map<std::string, mwmp::Cell *>::iterator it = cellsInitialized.begin(); it != cellsInitialized.end();) for (auto it = cellsInitialized.begin(); it != cellsInitialized.end();)
{ {
mwmp::Cell *mpCell = it->second; mwmp::Cell *mpCell = it->second;

@ -14,6 +14,7 @@ namespace mwmp
public: public:
CellController(); CellController();
virtual ~CellController();
void updateLocal(bool forceUpdate); void updateLocal(bool forceUpdate);
void updateDedicated(float dt); void updateDedicated(float dt);

Loading…
Cancel
Save