forked from teamnwah/openmw-tes3coop
Print exterior grid position in betaComment
This commit is contained in:
parent
205e039a39
commit
df62c06acf
1 changed files with 3 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
|||
#include "../mwworld/player.hpp"
|
||||
#include "../mwworld/containerstore.hpp"
|
||||
#include "../mwworld/esmstore.hpp"
|
||||
#include "../mwworld/cellstore.hpp"
|
||||
|
||||
#include "../mwmechanics/npcstats.hpp"
|
||||
#include "../mwmechanics/creaturestats.hpp"
|
||||
|
@ -886,7 +887,8 @@ namespace MWScript
|
|||
{
|
||||
MWWorld::CellStore* cell = ptr.getCell();
|
||||
msg << "Cell: " << MWBase::Environment::get().getWorld()->getCellName(cell) << std::endl;
|
||||
|
||||
if (cell->getCell()->isExterior())
|
||||
msg << "Grid: " << cell->getCell()->getGridX() << " " << cell->getCell()->getGridY() << std::endl;
|
||||
Ogre::Vector3 pos (ptr.getRefData().getPosition().pos);
|
||||
msg << "Coordinates: " << pos << std::endl;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue