aboutsummaryrefslogtreecommitdiff
path: root/client/multiplayer.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-19 16:17:48 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-19 16:17:48 +0200
commit0e00643a93e67433b60ecc80f008b90d104f8fee (patch)
tree764ebe24a5f5a547cb13ea34ebb1913ebde0d25c /client/multiplayer.gd
parent710d4c2013d3adf642df30b1c74e758bfb3e010a (diff)
downloadhurrycurry-0e00643a93e67433b60ecc80f008b90d104f8fee.tar
hurrycurry-0e00643a93e67433b60ecc80f008b90d104f8fee.tar.bz2
hurrycurry-0e00643a93e67433b60ecc80f008b90d104f8fee.tar.zst
something something integer conversion
Diffstat (limited to 'client/multiplayer.gd')
-rw-r--r--client/multiplayer.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/multiplayer.gd b/client/multiplayer.gd
index fa429514..44e900af 100644
--- a/client/multiplayer.gd
+++ b/client/multiplayer.gd
@@ -64,8 +64,9 @@ func fix_packet_types(val):
if typeof(val[k]) == TYPE_ARRAY and val[k].size() == 2 and typeof(val[k][0]) == TYPE_FLOAT and typeof(val[k][1]) == TYPE_FLOAT:
if k in ["tile"]: newval[k] = Vector2i(val[k][0], val[k][1])
elif k in ["pos", "position"]: newval[k] = Vector2(val[k][0], val[k][1])
- elif k in ["player", "id"] and typeof(val[k]) == TYPE_FLOAT:
- newval[k] = int(val[k])
+ # TODO reenable when fixed
+ # elif k in ["player", "id"] and typeof(val[k]) == TYPE_FLOAT:
+ # newval[k] = int(val[k])
else:
newval[k] = fix_packet_types(val[k])
return newval