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:
Nikolay Kasyanov 2012-03-12 02:12:56 +04:00
parent 387c84e606
commit f292a5a7ca
4 changed files with 40 additions and 31 deletions

View file

@ -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
{