summaryrefslogtreecommitdiffstats
path: root/platform/web/js/libs/library_godot_javascript_singleton.js
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-09-12 16:38:14 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-09-12 16:38:14 +0200
commit32e4ab91e8d1b266990ca98b5ec1ead19a1a1dd5 (patch)
treef16cc57006605e3df7ff277bf4980227d5c1b888 /platform/web/js/libs/library_godot_javascript_singleton.js
parent83d54ab2ad476ae265b323c2b88f4623b922f4c6 (diff)
downloadredot-engine-32e4ab91e8d1b266990ca98b5ec1ead19a1a1dd5.tar.gz
[MP] Fix broken RPCs after dictionary keys type change
As part of RPCs processing, they need to be sorted reliably across all peers, so that unique IDs can be assigned to greatly optimize the network layer. The RPC configuration nodes are stored in dictionaries which, until recently, always casted StringName keys to String. Since method names (keys) in the RPC configuration were StringName, a side effect of the above change is that sorting the dictionary keys no longer sort them alphabetically by default (StringName are compared using their pointers). This commit changes the RPC processing logic to use sort_custom to provide a function that can handle the StringName comparison.
Diffstat (limited to 'platform/web/js/libs/library_godot_javascript_singleton.js')
0 files changed, 0 insertions, 0 deletions