From 6450f7c8a64ba2b5df23093d0e2268f801e61d80 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 13 Nov 2022 13:41:24 +0100 Subject: [PATCH] sag:: set RV_INVERSE_WEIGHT flag --- rogueviz/sag.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rogueviz/sag.cpp b/rogueviz/sag.cpp index f2223b38..f28da273 100644 --- a/rogueviz/sag.cpp +++ b/rogueviz/sag.cpp @@ -365,7 +365,12 @@ namespace sag { cost += costat(i, sagid[i]); cost /= 2; } - + + void set_inverse() { + if(method == smMatch) vizflags |= RV_INVERSE_WEIGHT; + else vizflags &=~ RV_INVERSE_WEIGHT; + } + void reassign() { int DN = isize(sagid); for(int i=0; i