Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
8c5eba8
1
Parent(s):
1a5bad9
main.py
CHANGED
|
@@ -469,6 +469,8 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
| 469 |
#previous_actions = [(action_type, mouse_position)]
|
| 470 |
if not DEBUG_TEACHER_FORCING:
|
| 471 |
x, y = mouse_position
|
|
|
|
|
|
|
| 472 |
#mouse_position = (x//8, y//8)
|
| 473 |
previous_actions.append((action_type, mouse_position))
|
| 474 |
# Log the start time
|
|
|
|
| 469 |
#previous_actions = [(action_type, mouse_position)]
|
| 470 |
if not DEBUG_TEACHER_FORCING:
|
| 471 |
x, y = mouse_position
|
| 472 |
+
x = x//8 * 8
|
| 473 |
+
y = y // 8 * 8
|
| 474 |
#mouse_position = (x//8, y//8)
|
| 475 |
previous_actions.append((action_type, mouse_position))
|
| 476 |
# Log the start time
|