Commits

mcc  committed 6f54665

Don't allow levels where you spawn outside box

  • Participants
  • Parent commits d7711ff

Comments (0)

Files changed (1)

File server/server.py

 			self.basic()
 			self.noise(10, WALL)
 			self.noise(3, LAVA)
-			self.px = randint(1,self.xdim-2)
+			self.px = randint(3,self.xdim-2) # 3 because client spawns player offset
 			self.py = self.ydim-2
 			self.ex = randint(1,self.xdim-2)
 			self.ey = randint(2,4)