1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-17 22:25:12 +00:00

older compilers

This commit is contained in:
Zeno Rogue
2019-12-27 13:11:31 +01:00
parent e44c8ee53b
commit ec6ffded34
4 changed files with 10 additions and 3 deletions

View File

@@ -1656,7 +1656,7 @@ void celldrawer::check_rotations() {
// so we use function(old) which will return the same value as function(c) if ds.best is not known yet
cell *old = ds.best ? ds.best : c;
auto use_if_less = [this] (int a, int b, ld spd, int side) {
auto use_if_less = [this, &ds] (int a, int b, ld spd, int side) {
if(a > b) return;
if(!ds.best || a < b) ds.reset();
if(a <= b) {