mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 20:29:17 +00:00
rogueviz::snow:: used hr::lerp to make it work in new compilers
This commit is contained in:
parent
22aefcfff6
commit
a4f7bc1ee6
@ -82,7 +82,7 @@ transmatrix random_snow_matrix(cell *c) {
|
|||||||
h[a] = randd() * 2 - 1;
|
h[a] = randd() * 2 - 1;
|
||||||
else {
|
else {
|
||||||
ld r = randd();
|
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);
|
return bt::normalized_at(h);
|
||||||
|
Loading…
Reference in New Issue
Block a user