Skip to content

Commit

Permalink
Merge pull request #48 from fisadev/master
Browse files Browse the repository at this point in the history
Fixes para la nueva fisica de las balas
  • Loading branch information
luciotorre committed Jul 9, 2012
2 parents 188fa45 + 91b6200 commit ad0e4b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bots/fisa.py
Expand Up @@ -12,7 +12,7 @@

AIM = 0.2

SEARCH_THROTTLE = 0.5
SEARCH_THROTTLE = 1
SEARCH_THROTTLES = 20
SEARCH_TURNS = 3
MAX_SPEED = 15
Expand Down Expand Up @@ -89,7 +89,7 @@ def messageReceived(self, msg):
future_my_pos = predict_pos(self.pos, self.vel, 0.1)
distance = self.pos.distance(b.position)
future_distance = future_my_pos.distance(future_b_pos)
if distance > future_distance:
if distance - future_distance > 3:
incoming.append((future_distance - distance, b))

if incoming:
Expand Down

0 comments on commit ad0e4b5

Please sign in to comment.