From 9746cac1730516a0e4317bcbf1168452a278119e Mon Sep 17 00:00:00 2001 From: phroy Date: Mon, 31 Oct 2022 10:09:30 +0100 Subject: [PATCH] Bufix : colision sur la station et micro-temporisation lors des forages --- rp_lib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rp_lib.py b/rp_lib.py index fbebecd..3871ebc 100644 --- a/rp_lib.py +++ b/rp_lib.py @@ -189,7 +189,7 @@ def rp_avancer (): obj['stop'] = True if [x1,y1] in scene.objects['Terrain']['map_tile_station']: print ("Crash dans la station !") - rover_colision_station () + rover_colision_station (False) obj['stop'] = True if x1 < scene.objects['Terrain']['size'][0] or x1 > scene.objects['Terrain']['size'][2] or y1 < scene.objects['Terrain']['size'][1] or y1 > scene.objects['Terrain']['size'][3] : print ("Sortie de carte !") @@ -965,11 +965,13 @@ def rover_drill (x,y): scene.objects['Drill_tile-'+str(i)].worldPosition.x = x scene.objects['Drill_tile-'+str(i)].worldPosition.y = y scene.objects['Drill_tile-'+str(i)].setVisible(True,True) + rp_tempo (0.1) break for obj_i in scene.objects: if "tile_dirtHigh" in obj_i.name: if round(obj_i.worldPosition.x) == x and round(obj_i.worldPosition.y) == y : obj_i.setVisible(False, True) + rp_tempo (0.1) if scene.objects['Commands']['speed'] < 10: