mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-18 14:07:17 +01:00
Fix in editor level generation.
This commit is contained in:
parent
e582f4d6e5
commit
a8ec0ec501
@ -153,7 +153,7 @@ func _process(delta):
|
|||||||
|
|
||||||
for y in range(-1 + cpos.y, spawn_height + cpos.y):
|
for y in range(-1 + cpos.y, spawn_height + cpos.y):
|
||||||
if not chunk_has(x, z):
|
if not chunk_has(x, z):
|
||||||
# print("spawn " + str(Vector3(x, y, z)))
|
#print("spawn " + str(Vector2(x, z)))
|
||||||
chunk_create(x, z)
|
chunk_create(x, z)
|
||||||
|
|
||||||
update_lods()
|
update_lods()
|
||||||
@ -293,7 +293,7 @@ func set_editor_generate(value : bool) -> void:
|
|||||||
if value:
|
if value:
|
||||||
library.refresh_rects()
|
library.refresh_rects()
|
||||||
|
|
||||||
#level_generator.setup(self, current_seed, false, library)
|
level_generator.setup(self, current_seed, false, library)
|
||||||
spawn(0, 0)
|
spawn(0, 0)
|
||||||
# else:
|
# else:
|
||||||
# spawned = false
|
# spawned = false
|
||||||
|
Loading…
Reference in New Issue
Block a user