Update of /cvsroot/openrpg/openrpg1/orpg/mapper
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23493/orpg/mapper
Modified Files:
Tag: BRANCH-1-7-1
grid.py
Log Message:
Fix for the hex grid issue
Index: grid.py
===================================================================
RCS file: /cvsroot/openrpg/openrpg1/orpg/mapper/grid.py,v
retrieving revision 1.24.2.1
retrieving revision 1.24.2.2
diff -C2 -d -r1.24.2.1 -r1.24.2.2
*** grid.py 9 Mar 2007 14:30:46 -0000 1.24.2.1
--- grid.py 5 May 2007 05:31:26 -0000 1.24.2.2
***************
*** 487,496 ****
if xml_dom.hasAttribute("size"):
self.unit_size = int(xml_dom.getAttribute("size"))
! if self.mode == GRID_RECTANGLE:
! self.unit_size_y = self.unit_size
! if self.mode == GRID_ISOMETRIC:
! self.unit_size_y = self.unit_size
! elif self.mode == GRID_HEXAGON:
! self.unit_size_y = self.unit_size*(3**0.5)
if xml_dom.hasAttribute("snap"):
--- 487,491 ----
if xml_dom.hasAttribute("size"):
self.unit_size = int(xml_dom.getAttribute("size"))
! self.unit_size_y = self.unit_size
if xml_dom.hasAttribute("snap"):
|