Skip to content

Commit

Permalink
added comment about numpy in harmonize_ocean
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomassetti committed Oct 26, 2015
1 parent e16564b commit 92f75c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions worldengine/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def harmonize_ocean(ocean, elevation, ocean_level):
for x in range(width):
e = elevation[y, x]
if ocean[y, x] and e < shallow_sea:
# TODO: use numpy to avoid the loop
if e < midpoint:
e = midpoint - ((midpoint - e) / 5.0)
else:
Expand Down

0 comments on commit 92f75c2

Please sign in to comment.