I try to update you patch, but it goes to an error.
That's changes i will make:
in Cell.h
template<class LOCK_TYPE, class T, class CONTAINER> void Visit(const CellLock<LOCK_TYPE> &, TypeContainerVisitor<T, CONTAINER> &visitor, Map &, float radius, float x_off, float y_off) const;
To
template<class T, class CONTAINER> void Visit(const CellPair &cellPair, TypeContainerVisitor<T, CONTAINER> &visitor, Map &, float radius, float x_off, float y_off) const;
CellImpl.h:
template<class LOCK_TYPE,class T, class CONTAINER>
to
template<class T, class CONTAINER>
and
Cell::Visit(const CellLock<LOCK_TYPE> &l, TypeContainerVisitor<T, CONTAINER> &visitor, Map &m, float radius, float x_off, float y_off) const
to
Cell::Visit(const CellPair &cellPair, TypeContainerVisitor<T, CONTAINER> &visitor, Map &m, float radius, float x_off, float y_off) const
and
m.Visit(l, visitor);
to
m.Visit(*this, visitor);
and
CellLock<LOCK_TYPE> lock(r_zone, cell_pair);
to
CellPair lock(r_zone, cell_pair);
But this part of code compiled with errors:
for(uint32 x = begin_cell.x_coord; x <= end_cell.x_coord; x++)
{
for(uint32 y = begin_cell.y_coord; y <= end_cell.y_coord; y++)
{
CellPair cell_pair(x,y);
Cell r_zone(cell_pair);
r_zone.data.Part.nocreate = l->data.Part.nocreate;
CellPair lock(r_zone, cell_pair);
m.Visit(lock, visitor);
}
}
And olso errors in map.h and GameObject.cpp
-------------------------------------------------------------------------------
Вобщем нифига не понял че еще не поменял, я новичек в С++ с трудом разбираюсь в коде. Не мог бы ты помочь, либо выложить уже обновленный патч?
Кстати насчет скрипта для нового бг - я был бы рад помочь в тестировании и может даже в разработке.