1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

moved cname() to sag

This commit is contained in:
Zeno Rogue 2020-03-29 15:37:56 +02:00
parent 57eff8bc97
commit 220d23124b
2 changed files with 6 additions and 6 deletions

View File

@ -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<class T> function<void(presmode)> roguevizslide(char c, const T& t) {
return [c,t] (presmode mode) {
patterns::canvasback = 0x101010;

View File

@ -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(); })