Permalink
Browse files

Merge pull request #48 from fisadev/master

Fixes para la nueva fisica de las balas
  • Loading branch information...
2 parents 188fa45 + 91b6200 commit ad0e4b5b3e572d7c95d8168a93b643331d58720d @luciotorre committed Jul 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bots/fisa.py
View
@@ -12,7 +12,7 @@
AIM = 0.2
-SEARCH_THROTTLE = 0.5
+SEARCH_THROTTLE = 1
SEARCH_THROTTLES = 20
SEARCH_TURNS = 3
MAX_SPEED = 15
@@ -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:

0 comments on commit ad0e4b5

Please sign in to comment.