From d264df294a54a37860fe22ac6f8549fd0ddd7f5a Mon Sep 17 00:00:00 2001 From: Philippe Roy Date: Fri, 28 Oct 2022 01:24:58 +0200 Subject: [PATCH] Bugfix : Maj du level dans la documentation, Crash lors de l'avance rapide (10) --- rp.py | 1 + rp_lib.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rp.py b/rp.py index 8b3b632..735ce70 100644 --- a/rp.py +++ b/rp.py @@ -108,6 +108,7 @@ def points_maj (cont): # Level if scene.objects['Points-Level-text']['Text']!=str(scene.objects['Points']['level']): scene.objects['Points-Level-text']['Text']=str(scene.objects['Points']['level']) + scene.objects['Book_level']['Text'] = "Niveau actuel : "+str(scene.objects['Points']['level']) # Maj du fichier de config (sound : data/mission/level -> [1][1].text) lors d'une augmentation de niveau if scene.objects['Points']['level']>int(rp_config_tree[1][1].text): diff --git a/rp_lib.py b/rp_lib.py index 21e4788..fbebecd 100644 --- a/rp_lib.py +++ b/rp_lib.py @@ -235,7 +235,7 @@ def rp_avancer (): # rp_tempo (0.1*step) # Animation - if scene.objects['Commands']['speed'] < 10: + if scene.objects['Commands']['speed'] < 10 or scene.objects['Points']['step'] <=2 : start = 1 end = 100 layer = 0