From d506c73571abd19f1e8330495c0a66fe7a1ddd15 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 1 Dec 2018 23:53:50 +0100 Subject: [PATCH] crystal:: animates correctly --- hyper.h | 3 +++ screenshot.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/hyper.h b/hyper.h index c5dd6ed7..0a4accb5 100644 --- a/hyper.h +++ b/hyper.h @@ -1298,6 +1298,9 @@ namespace rug { rugpoint *addRugpoint(hyperpoint h, double dist); void buildRug(); + bool in_crystal(); + void physics(); + extern renderbuffer *glbuf; extern eGeometry gwhere; extern bool no_fog; diff --git a/screenshot.cpp b/screenshot.cpp index 60fdf37b..356b521d 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -267,6 +267,7 @@ void saveHighQualityShot(const char *fname, const char *caption, int fade) { if(rug::rugged) { if(!rug::renderonce) rug::prepareTexture(); glbuf.enable(); + if(rug::in_crystal()) rug::physics(); rug::drawRugScene(); } else