diff options
Diffstat (limited to 'src/ocean/ocean_alt.cpp')
-rw-r--r-- | src/ocean/ocean_alt.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ocean/ocean_alt.cpp b/src/ocean/ocean_alt.cpp index 1c9306b..9ead324 100644 --- a/src/ocean/ocean_alt.cpp +++ b/src/ocean/ocean_alt.cpp @@ -381,9 +381,12 @@ void ocean_alt::update_ocean() // std::cout << m_foam_constants.wavelengths[i] << std::endl; // } - if (waveheight >= height_threshold){ + if (m_foam_constants.wavelengths[i] >= height_threshold){ //std::cout << "push" << std::endl; - m_heights.push_back(v); + OceanSpray s; + s.height = v; + s.slope = norm; + m_heights.push_back(s); } |