1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-20 12:58:06 +00:00

fixed the unused capture warnings

This commit is contained in:
Zeno Rogue
2020-01-02 19:03:57 +01:00
parent 0d4ab601d0
commit 938e4628a3
2 changed files with 4 additions and 2 deletions

View File

@@ -1656,7 +1656,8 @@ 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, &ds] (int a, int b, ld spd, int side) {
auto use_if_less = [this] (int a, int b, ld spd, int side) {
auto& ds = downseek;
if(a > b) return;
if(!ds.best || a < b) ds.reset();
if(a <= b) {