forked from teamnwah/openmw-tes3coop
[Client] Use enum instead magic values
This commit is contained in:
parent
a95cf0e07a
commit
74cfc4a821
1 changed files with 2 additions and 2 deletions
|
@ -254,7 +254,7 @@ namespace MWWorld
|
|||
// Added by tes3mp
|
||||
//
|
||||
// LocalPlayer has unloaded a cell, so store it
|
||||
mwmp::Main::get().getLocalPlayer()->storeCellState(*(*iter)->getCell(), 1);
|
||||
mwmp::Main::get().getLocalPlayer()->storeCellState(*(*iter)->getCell(), mwmp::CellState::UNLOAD);
|
||||
}
|
||||
|
||||
void Scene::loadCell (CellStore *cell, Loading::Listener* loadingListener, bool respawn)
|
||||
|
@ -323,7 +323,7 @@ namespace MWWorld
|
|||
// Added by tes3mp
|
||||
//
|
||||
// LocalPlayer has loaded a cell, so store it
|
||||
mwmp::Main::get().getLocalPlayer()->storeCellState(*cell->getCell(), 0);
|
||||
mwmp::Main::get().getLocalPlayer()->storeCellState(*cell->getCell(), mwmp::CellState::LOAD);
|
||||
}
|
||||
|
||||
mPreloader->notifyLoaded(cell);
|
||||
|
|
Loading…
Reference in a new issue