Browse Source

Minor Grammar and Naming Fix (#1624)

* Minor Grammar and Naming Fix

Removed an extra "to" in comment.
Renamed var len to var length to avoid name conflict with len() and to make it more clear.

* Fix spelling error on my part

thanks @cbscribe
FeralBytes 7 years ago
parent
commit
b0c75ee4ca
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tutorials/io/background_loading.rst

+ 3 - 3
tutorials/io/background_loading.rst

@@ -145,7 +145,7 @@ precise control over the timings.
             set_process(false)
             set_process(false)
             return
             return
 
 
-        if wait_frames > 0: # wait for frames to let the "loading" animation to show up
+        if wait_frames > 0: # wait for frames to let the "loading" animation show up
             wait_frames -= 1
             wait_frames -= 1
             return
             return
 
 
@@ -182,10 +182,10 @@ loader.
         get_node("progress").set_progress(progress)
         get_node("progress").set_progress(progress)
 
 
         # or update a progress animation?
         # or update a progress animation?
-        var len = get_node("animation").get_current_animation_length()
+        var length = get_node("animation").get_current_animation_length()
 
 
         # call this on a paused animation. use "true" as the second parameter to force the animation to update
         # call this on a paused animation. use "true" as the second parameter to force the animation to update
-        get_node("animation").seek(progress * len, true)
+        get_node("animation").seek(progress * length, true)
 
 
     func set_new_scene(scene_resource):
     func set_new_scene(scene_resource):
         current_scene = scene_resource.instance()
         current_scene = scene_resource.instance()