diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-01-15 11:14:51 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-01-15 11:14:51 +0100 |
commit | 60d235622d13b8126001e61da096ca48244c2733 (patch) | |
tree | 7f013580e878bee1ce0d1da2c34611e0bc5c3fe6 /scene/3d/sprite_3d.cpp | |
parent | 1f7846abf8e2c3ec132426ef4d9c785297614244 (diff) |
Don't reset MultiplayerAPI when setting same peer.
A GDScript call to:
`multiplayer.network_peer.some_prop = true`
seems to transalte to:
```
var temp = multiplayer.network_peer
temp.some_prop = true
multiplayer.network_peer = temp
```
Which caused the MultiplayerAPI to be resetted.
The call to set_network_peer is now ignored if the peer that's beeing
set is the same as the currently set one.
Diffstat (limited to 'scene/3d/sprite_3d.cpp')
0 files changed, 0 insertions, 0 deletions