diff --git a/compileunits.h b/compileunits.h index ffcab779..556c80c9 100644 --- a/compileunits.h +++ b/compileunits.h @@ -90,6 +90,10 @@ bool inv::activating; #endif #include "commandline.cpp" #include "bigstuff.cpp" + +#if CAP_DAILY +#include "private/daily.cpp" +#endif #endif #if IN_CU(1) diff --git a/init.cpp b/init.cpp index 257df22f..ed06a3d0 100644 --- a/init.cpp +++ b/init.cpp @@ -117,6 +117,14 @@ #define CAP_GLORNOT (CAP_GL && !ISWEB && !ISIOS) +#if ISSTEAM +#define CAP_DAILY 1 +#endif + +#ifndef CAP_DAILY +#define CAP_DAILY 0 +#endif + #ifndef CAP_CERTIFY #define CAP_CERTIFY 0 #endif diff --git a/system.cpp b/system.cpp index 306d5d80..c3080d5d 100644 --- a/system.cpp +++ b/system.cpp @@ -1188,8 +1188,10 @@ void restartGame(char switchWhat, bool push, bool keep_screens) { inv::on = false; princess::challenge = false; } +#if CAP_DAILY if(switchWhat == rg::daily) daily::setup(); +#endif if(switchWhat == rg::princess) { princess::challenge = !princess::challenge; firstland = princess::challenge ? laPalace : laIce;