summaryrefslogtreecommitdiffstats
path: root/core/io/multiplayer_api.cpp
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2018-10-03 13:40:37 -0400
committerAaron Franke <arnfranke@yahoo.com>2018-10-06 16:12:36 -0400
commit37386f112bafa9c4e94c342f6d5f04392a5623f7 (patch)
tree23870a98dd815447693154dedcb054e88a20e694 /core/io/multiplayer_api.cpp
parentffe94ef4e2dc28e69337f53f58d0fa60e23607a8 (diff)
downloadredot-engine-37386f112bafa9c4e94c342f6d5f04392a5623f7.tar.gz
Remove redundant "== true" code
If it can be compared to a boolean, it can be evaluated as one in-place.
Diffstat (limited to 'core/io/multiplayer_api.cpp')
-rw-r--r--core/io/multiplayer_api.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/multiplayer_api.cpp b/core/io/multiplayer_api.cpp
index 17b77bc535..d2351c8149 100644
--- a/core/io/multiplayer_api.cpp
+++ b/core/io/multiplayer_api.cpp
@@ -578,7 +578,7 @@ void MultiplayerAPI::_send_rpc(Node *p_from, int p_to, bool p_unreliable, bool p
network_peer->set_target_peer(E->get()); // To this one specifically.
- if (F->get() == true) {
+ if (F->get()) {
// This one confirmed path, so use id.
encode_uint32(psc->id, &(packet_cache.write[1]));
network_peer->put_packet(packet_cache.ptr(), ofs);