mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-30 05:47:57 +03:00
Feature #37 (In Progress) Render Path Grid
now using mwRoot instead of ogre's root, so no more messing with coordinates.
This commit is contained in:
parent
387c84e606
commit
f292a5a7ca
4 changed files with 40 additions and 31 deletions
|
@ -428,12 +428,10 @@ namespace ESMS
|
|||
if (grid->data.x == 0 && grid->data.y == 0)
|
||||
{
|
||||
intGrids[grid->cell] = grid;
|
||||
std::cout << "int grids size " << intGrids.size() << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
extGrids[std::make_pair(grid->data.x, grid->data.y)] = grid;
|
||||
std::cout << "ext grids size " << extGrids.size() << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -449,8 +447,6 @@ namespace ESMS
|
|||
|
||||
Pathgrid *search(int cellX, int cellY, const std::string &cellName) const
|
||||
{
|
||||
std::cout << "int grids size " << intGrids.size() << std::endl;
|
||||
std::cout << "ext grids size " << extGrids.size() << std::endl;
|
||||
Pathgrid *result = NULL;
|
||||
if (cellX == 0 && cellY == 0) // possibly interior
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue