Update of /cvsroot/openrpg/openrpg1/orpg/mapper
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22781/orpg/mapper
Modified Files:
Tag: BRANCH-1-7-3
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.26
retrieving revision 1.26.2.1
diff -C2 -d -r1.26 -r1.26.2.1
*** grid.py 4 May 2007 03:15:17 -0000 1.26
--- grid.py 9 May 2007 19:30:36 -0000 1.26.2.1
***************
*** 482,491 ****
self.unit_size = int(xml_dom.getAttribute("size"))
self.unit_size_y = self.unit_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"):
--- 482,485 ----
|