Merge branch 'main' of github.com:Kum1ta/PTME_Transcendence

This commit is contained in:
Kum1ta
2024-09-16 14:33:12 +02:00

View File

@ -6,7 +6,7 @@
# By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/09/13 16:20:58 by tomoron #+# #+# #
# Updated: 2024/09/16 14:16:03 by tomoron ### ########.fr #
# Updated: 2024/09/16 14:28:57 by tomoron ### ########.fr #
# #
# **************************************************************************** #
@ -93,7 +93,7 @@ class Game:
def move(self, socket, pos, up):
opponent = self.p1 if socket != self.p1 else self.p2
opponent.sync_send({"type":"game","content":{"action":3, "pos":pos, "up":up}})
opponent.sync_send({"type":"game","content":{"action":3, "pos":pos, "up":up, "is_opponent":True}})
async def gameLoop(self):
self.started = True