rogueviz::snow:: used hr::lerp to make it work in new compilers

This commit is contained in:
Zeno Rogue 2021-04-07 18:32:36 +02:00
parent 22aefcfff6
commit a4f7bc1ee6
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ transmatrix random_snow_matrix(cell *c) {
h[a] = randd() * 2 - 1;
else {
ld r = randd();
h[co] = log(lerp(1, aer, r)) / log(aer) * 2 - 1;
h[co] = log(hr::lerp(1, aer, r)) / log(aer) * 2 - 1;
}
}
return bt::normalized_at(h);