You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Remove redundant "== true" code
If it can be compared to a boolean, it can be evaluated as one in-place.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user