Skip to content

Commit e14bf7a

Browse files
author
Vano
committedOct 14, 2024·
Sync with 84589f9
1 parent a75a4ec commit e14bf7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎godot_cppscript.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ def write_header(file, defs, env):
13471347
os.path.relpath(file, os.path.dirname(gen_filename)).replace('\\\\', '/'),
13481348
('\\n'.join(global_variables) + '\\n\\n' if global_variables != [] else ''))
13491349
1350-
if has_rpc_config != '':
1350+
if has_rpc_config:
13511351
header_include = '#include <godot_cpp/classes/multiplayer_api.hpp>\\n' + header_include
13521352
header_include = '#include <godot_cpp/classes/multiplayer_peer.hpp>\\n' + header_include
13531353

‎godot_cppscript.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ def write_header(file, defs, env):
14061406
os.path.relpath(file, os.path.dirname(gen_filename)).replace('\\', '/'),
14071407
('\n'.join(global_variables) + '\n\n' if global_variables != [] else ''))
14081408

1409-
if has_rpc_config != '':
1409+
if has_rpc_config:
14101410
header_include = '#include <godot_cpp/classes/multiplayer_api.hpp>\n' + header_include
14111411
header_include = '#include <godot_cpp/classes/multiplayer_peer.hpp>\n' + header_include
14121412

0 commit comments

Comments
 (0)
Please sign in to comment.