CheeseLord / warts

WAcky Real Time Strategy
MIT License
1 stars 0 forks source link

If you click before the graphics is up, the client hits an assertion failure #21

Open kronmillerg opened 7 years ago

kronmillerg commented 7 years ago

Tail end of the traceback:

  File "src/client/graphics.py", line 316, in handleMouseClick
    self.graphicsInterface.graphicsMessage(message.serialize())
  File "src/client/graphics_interface.py", line 47, in graphicsMessage
    self.backend.graphicsMessage(messageStr)
  File "src/client/backend.py", line 120, in graphicsMessage
    unitId = playerToUnit(self.myId)
  File "src/shared/ident.py", line 29, in playerToUnit
    return UnitId(playerId, 0)
  File "src/shared/ident.py", line 3, in __init__
    assert playerId  >= 0
exceptions.AssertionError: