From 6926b20bc6274577bac34e851e4ba95fa514795b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 7 Apr 2021 18:31:27 +0200 Subject: [PATCH] rogueviz:: unity build with CAP_ROGUEVIZ works again --- rogueviz/playing-with-impossibility.cpp | 4 +++- rogueviz/rogueviz-all.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rogueviz/playing-with-impossibility.cpp b/rogueviz/playing-with-impossibility.cpp index b3b420f0..9f88d806 100644 --- a/rogueviz/playing-with-impossibility.cpp +++ b/rogueviz/playing-with-impossibility.cpp @@ -5,6 +5,8 @@ #define RVPATH HYPERPATH "rogueviz/" namespace rogueviz { + +#ifndef RV_ALL namespace cylon { extern void enable(); extern bool cylanim; @@ -48,7 +50,7 @@ namespace ply { void enable(); extern rogueviz::objmodels::model staircase; } - +#endif } namespace hr { diff --git a/rogueviz/rogueviz-all.cpp b/rogueviz/rogueviz-all.cpp index 0d87e008..962860f8 100644 --- a/rogueviz/rogueviz-all.cpp +++ b/rogueviz/rogueviz-all.cpp @@ -45,6 +45,7 @@ #include "planets.cpp" #include "hyperbolic-analogs.cpp" +#define RV_ALL #include "simple-impossible.cpp" #include "ascending-descending.cpp" #include "balls.cpp"