Browse Source

Minor cleanup

master
Ryan Reed 1 year ago
parent
commit
ad12c996a3
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      scenes/conway.gd

+ 1
- 2
scenes/conway.gd View File

@ -106,6 +106,7 @@ func update_generation_ui() -> void:
func start_conway() -> void: func start_conway() -> void:
clear_world() clear_world()
generate_world() generate_world()
update_previous_generation_hashes()
generation = 1 generation = 1
evolution_is_stalled = false evolution_is_stalled = false
@ -270,8 +271,6 @@ func generate_world() -> void:
cell_states[x][y] = is_alive cell_states[x][y] = is_alive
cell_ids[x][y] = create_cell(Vector2(x, y), bool(is_alive)) cell_ids[x][y] = create_cell(Vector2(x, y), bool(is_alive))
update_previous_generation_hashes()
func _on_generation_timer_timeout() -> void: func _on_generation_timer_timeout() -> void:
process_generation() process_generation()


Loading…
Cancel
Save