1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-27 21:58:13 +00:00

ads-game:: added CAP_VIDEO guard, and made SCU compile work

This commit is contained in:
Zeno Rogue 2022-09-29 15:13:59 +02:00
parent 31318862cb
commit 0fb4033868
2 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,8 @@
#define CAP_ARCM 0 #define CAP_ARCM 0
#define CAP_HISTORY 0 #define CAP_HISTORY 0
#define CAP_STARTANIM 0 #define CAP_STARTANIM 0
#define CAP_VR 0
#include "../hyper.cpp"
#endif #endif
#include "../rogueviz.h" #include "../rogueviz.h"

View File

@ -624,6 +624,7 @@ void run_ds_game() {
} }
void ds_record() { void ds_record() {
#if CAP_VIDEO
ld full = 1000; ld full = 1000;
anims::period = full * history.back().start / DS_(simspeed); anims::period = full * history.back().start / DS_(simspeed);
anims::noframes = anims::period * 60 / 1000; anims::noframes = anims::period * 60 / 1000;
@ -650,6 +651,7 @@ void ds_record() {
}); });
anims::record_video_std(); anims::record_video_std();
delHook(anims::hooks_anim, a); delHook(anims::hooks_anim, a);
#endif
} }
auto ds_hooks = auto ds_hooks =