Skip to content

Commit 2bffd46

Browse files
committed
Fixed FormularBot driving straight when shooting
Removed else: i += 1 which caused the bug. I added this because it was added to original GoslingUtils to fix a very rare crash/bug, but it's causing problems for me so I removed it Also updated version number to 1.5 :D
1 parent 3e8b546 commit 2bffd46

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

FormularBot.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ looks_config = ./FormularBotAppearence.cfg
66
python_file = ./FormularBot.py
77

88
# Name of the bot in-game
9-
name = FormularBot 1.4
9+
name = FormularBot 1.5
1010

1111
logo_file = FormularBot.png
1212

tools.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,4 @@ def find_hits(agent,targets):
7777
hits[pair].append(aerial)
7878
elif backward_flag and ball_location[2] <= 280 and slope > 0.25:
7979
hits[pair].append(jump_shot(ball_location,intercept_time,best_shot_vector,slope,-1))
80-
else:
81-
i += 1
8280
return hits

0 commit comments

Comments
 (0)