Bugfix : Maj du level dans la documentation, Crash lors de l'avance rapide (10)

This commit is contained in:
Philippe Roy 2022-10-28 01:24:58 +02:00
parent cfab8dcef6
commit d264df294a
2 changed files with 2 additions and 1 deletions

1
rp.py
View File

@ -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):

View File

@ -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