diff engine/python/fife/extensions/serializers/xmlmap.py @ 549:c9113e23b004

*Removed the ExactModellCoordinate object from the camera constructor. Attention: Little API change to the camera/map.
author helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 11 Jun 2010 21:29:58 +0000
parents 4f2752d45458
children c2de5aafe788
line wrap: on
line diff
--- a/engine/python/fife/extensions/serializers/xmlmap.py	Fri Jun 11 21:10:40 2010 +0000
+++ b/engine/python/fife/extensions/serializers/xmlmap.py	Fri Jun 11 21:29:58 2010 +0000
@@ -318,11 +318,11 @@
 
 			try:
 				if viewport:
-					cam = map.addCamera(str(id), map.getLayer(str(ref_layer_id)),fife.Rect(*[int(c) for c in viewport.split(',')]),fife.ExactModelCoordinate(0,0,0))
+					cam = map.addCamera(str(id), map.getLayer(str(ref_layer_id)),fife.Rect(*[int(c) for c in viewport.split(',')]))
 
 				else:
 					screen = self.engine.getRenderBackend()
-					cam = map.addCamera(str(id), map.getLayer(str(ref_layer_id)),fife.Rect(0,0,screen.getScreenWidth(),screen.getScreenHeight()),fife.ExactModelCoordinate(0,0,0))
+					cam = map.addCamera(str(id), map.getLayer(str(ref_layer_id)),fife.Rect(0,0,screen.getScreenWidth(),screen.getScreenHeight()))
 
 				cam.setCellImageDimensions(int(ref_cell_width), int(ref_cell_height))
 				cam.setRotation(float(rotation))