Commits

mcc committed be38438

Fix initial generation; q-reboot

Comments (0)

Files changed (2)

media/overlay/play/onUpdate.lua

 	if gm.dead then
 		if down[KEY_DOWN] then
 			bridge:rebirth()
+		elseif (not gm.won) and down[KEY_q] then
+			force_load = nil
+			bridge:rebirth()
 		end
 	end
 	
 		
 	def clone(self):
 		c = Board(self.xdim,self.ydim, True)
-		c.str = self.str
+		c.str = list(self.str)
 		c.px = self.px
 		c.py = self.py
 		c.ex = self.ex
 		self.board.xml(doc,r)
 	
 class Genome:
-	def __init__(self, id):
-		self.id = id
+	def __init__(self, _id):
+		self.id = _id
 		self.specs = []
-		basic = Spec(id)
+		basic = Spec(self.id)
 		for i in range(options.specs):
 			s = basic.clone().mutate()
 			s.sid = i