Skip to content

Commit

Permalink
Sync with 84589f9
Browse files Browse the repository at this point in the history
  • Loading branch information
Vano committed Oct 14, 2024
1 parent a75a4ec commit e14bf7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion godot_cppscript.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ def write_header(file, defs, env):
os.path.relpath(file, os.path.dirname(gen_filename)).replace('\\\\', '/'),
('\\n'.join(global_variables) + '\\n\\n' if global_variables != [] else ''))
if has_rpc_config != '':
if has_rpc_config:
header_include = '#include <godot_cpp/classes/multiplayer_api.hpp>\\n' + header_include
header_include = '#include <godot_cpp/classes/multiplayer_peer.hpp>\\n' + header_include
Expand Down
2 changes: 1 addition & 1 deletion godot_cppscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ def write_header(file, defs, env):
os.path.relpath(file, os.path.dirname(gen_filename)).replace('\\', '/'),
('\n'.join(global_variables) + '\n\n' if global_variables != [] else ''))

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

Expand Down

0 comments on commit e14bf7a

Please sign in to comment.