fixed issues where server refused to start on laptop, fixed issue whith dictkeys not beeing found, fixed issue where client was spaming cardplaced event to server but lost capabillity of sending said event at all
This commit is contained in:
parent
0602e638f3
commit
b98b9821dc
Binary file not shown.
@ -120,15 +120,16 @@ class App:
|
||||
# TODO: send place card event to server
|
||||
# resets the currently selected card in order to prevent it getting moved
|
||||
try:
|
||||
card.setDragging(False)
|
||||
# TODO: send place card event to server
|
||||
# resets the currently selected card in order to prevent it getting moved
|
||||
PlaceCard(self.__tcpClient, card) # tells the server that the player placed this card
|
||||
if card == selectedCard:
|
||||
card.setDragging(False)
|
||||
# TODO: send place card event to server
|
||||
# resets the currently selected card in order to prevent it getting moved
|
||||
PlaceCard(self.__tcpClient, card) # tells the server that the player placed this card
|
||||
except Exception as e:
|
||||
print(f"failed to place card on server due to error: {e}")
|
||||
|
||||
if not card == None:
|
||||
card = None
|
||||
if not selectedCard == None:
|
||||
selectedCard = None
|
||||
|
||||
# sets the running state for the gameloop
|
||||
def setRunning(self, running:bool):
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user