Skip to content

Commit

Permalink
Changed warp command to land entities around the limits of the destin…
Browse files Browse the repository at this point in the history
…ation celestial's warp radius.
  • Loading branch information
ecdavis committed Oct 20, 2016
1 parent 46b74cf commit b0f9b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacegame/modules/warp.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _find_warp_destination(mobile, destination_uuid):
celestials = mobile.star_system.get_celestials(uuids=mobile.aux["warp"].scanner)
for celestial in celestials:
if celestial.uuid == destination_uuid:
return celestial, _random_position_around((0, 0, 0))
return celestial, _random_position_around((0+celestial.warp_radius, 0, 0))
return None, None


Expand Down

0 comments on commit b0f9b53

Please sign in to comment.