revenge of the player number offset
This commit is contained in:
		
							parent
							
								
									5b72fd4e36
								
							
						
					
					
						commit
						26eb44ef15
					
				| 
						 | 
					@ -161,7 +161,7 @@ def get_tracker(room: int):
 | 
				
			||||||
                 "Titans Mitts": "Progressive Glove"
 | 
					                 "Titans Mitts": "Progressive Glove"
 | 
				
			||||||
                 }
 | 
					                 }
 | 
				
			||||||
        links = {get_id(key): get_id(value) for key, value in links.items()}
 | 
					        links = {get_id(key): get_id(value) for key, value in links.items()}
 | 
				
			||||||
        inventory = {teamnumber: {playernumber: collections.Counter() for playernumber in range(len(team))}
 | 
					        inventory = {teamnumber: {playernumber: collections.Counter() for playernumber in range(1, len(team) + 1)}
 | 
				
			||||||
                     for teamnumber, team in enumerate(multidata["names"])}
 | 
					                     for teamnumber, team in enumerate(multidata["names"])}
 | 
				
			||||||
        for (team, player), locations_checked in room.multisave.get("location_checks", {}):
 | 
					        for (team, player), locations_checked in room.multisave.get("location_checks", {}):
 | 
				
			||||||
            for location in locations_checked:
 | 
					            for location in locations_checked:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -95,7 +95,6 @@ def run_server_process(room_id, ponyconfig: dict):
 | 
				
			||||||
            socketname = wssocket.getsockname()
 | 
					            socketname = wssocket.getsockname()
 | 
				
			||||||
            if wssocket.family == socket.AF_INET6:
 | 
					            if wssocket.family == socket.AF_INET6:
 | 
				
			||||||
                logging.info(f'Hosting game at [{get_public_ipv6()}]:{socketname[1]}')
 | 
					                logging.info(f'Hosting game at [{get_public_ipv6()}]:{socketname[1]}')
 | 
				
			||||||
                if ctx.port != socketname[1]:  # different port
 | 
					 | 
				
			||||||
                with db_session:
 | 
					                with db_session:
 | 
				
			||||||
                    room = Room.get(id=ctx.room_id)
 | 
					                    room = Room.get(id=ctx.room_id)
 | 
				
			||||||
                    room.last_port = socketname[1]
 | 
					                    room.last_port = socketname[1]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue