mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-25 22:10:41 -04:00
[Client] Use enum instead magic values
This commit is contained in:
parent
a95cf0e07a
commit
74cfc4a821
@ -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…
x
Reference in New Issue
Block a user