From 223732bbfbed58ca0679d26e5bab743ae510ec47 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 5 Jul 2018 07:31:27 +0200 Subject: [PATCH] rogueviz::kohonen:: legends --- rogueviz-kohonen.cpp | 10 ++++++---- rogueviz.cpp | 15 ++++++++++++--- rogueviz.h | 2 +- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/rogueviz-kohonen.cpp b/rogueviz-kohonen.cpp index ffb237c8..8278d2d9 100644 --- a/rogueviz-kohonen.cpp +++ b/rogueviz-kohonen.cpp @@ -594,14 +594,16 @@ int showsample(int id) { return isize(samples_shown) - 1; } -void showsample(string s) { - if(s == "") return; +int showsample(string s) { + if(s == "") return -1; + int ret = -1; for(int i=0; i