summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-09-01 18:14:37 +0200
committerFlorian Jung <flo@windfisch.org>2015-09-01 18:14:37 +0200
commit738d057c6da4aaca7516158db55f3553a03cf189 (patch)
treecc2cd7cb0fbfc8b7b79b364cf478d1dc4b75a5ad /gui.py
parent4251e85c172f57c39bdfa244e945578eb450926d (diff)
better "can i safely feed" estimation
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui.py b/gui.py
index 001fc80..2a8460c 100644
--- a/gui.py
+++ b/gui.py
@@ -209,8 +209,8 @@ def draw_cell(cell):
cx,cy = world_to_win_pt(cell.pos,c.player.center)
try:
mov_ang = cell.movement_angle
- p2 = cell.pos + Vec( math.cos(mov_ang + 26*math.pi/180), math.sin(mov_ang + 26*math.pi/180) ) * (cell.size+700)
- p3 = cell.pos + Vec( math.cos(mov_ang - 26*math.pi/180), math.sin(mov_ang - 26*math.pi/180) ) * (cell.size+700)
+ p2 = cell.pos + Vec( math.cos(mov_ang + mechanics.eject_delta*math.pi/180), math.sin(mov_ang + mechanics.eject_delta*math.pi/180) ) * (cell.size+700)
+ p3 = cell.pos + Vec( math.cos(mov_ang - mechanics.eject_delta*math.pi/180), math.sin(mov_ang - mechanics.eject_delta*math.pi/180) ) * (cell.size+700)
cx2,cy2 = world_to_win_pt(p2,c.player.center)
cx3,cy3 = world_to_win_pt(p3,c.player.center)