From 220d23124b970abf37de9aca8a648bf6c9fc62d6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 29 Mar 2020 15:37:56 +0200 Subject: [PATCH] moved cname() to sag --- rogueviz/rogueviz.cpp | 6 ------ rogueviz/sag.cpp | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rogueviz/rogueviz.cpp b/rogueviz/rogueviz.cpp index b094f26b..6a006978 100644 --- a/rogueviz/rogueviz.cpp +++ b/rogueviz/rogueviz.cpp @@ -1162,12 +1162,6 @@ namespace rvtour { using namespace tour; -string cname() { - if(euclid) return "coord-6.txt"; - if(PURE) return "coord-7.txt"; - return "coord-67.txt"; - } - template function roguevizslide(char c, const T& t) { return [c,t] (presmode mode) { patterns::canvasback = 0x101010; diff --git a/rogueviz/sag.cpp b/rogueviz/sag.cpp index 6851ba62..5280eb03 100644 --- a/rogueviz/sag.cpp +++ b/rogueviz/sag.cpp @@ -543,6 +543,12 @@ bool turn(int delta) { // shmup::pc[0]->rebase(); } +string cname() { + if(euclid) return "coord-6.txt"; + if(PURE) return "coord-7.txt"; + return "coord-67.txt"; + } + int ah = addHook(hooks_args, 100, readArgs) + addHook(shmup::hooks_turn, 100, turn) + addHook(rogueviz::hooks_close, 100, [] { sag::sagedges.clear(); })