mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-22 16:24:07 +00:00
crystal:: animates correctly
This commit is contained in:
parent
683b235d55
commit
d506c73571
3
hyper.h
3
hyper.h
@ -1298,6 +1298,9 @@ namespace rug {
|
|||||||
rugpoint *addRugpoint(hyperpoint h, double dist);
|
rugpoint *addRugpoint(hyperpoint h, double dist);
|
||||||
void buildRug();
|
void buildRug();
|
||||||
|
|
||||||
|
bool in_crystal();
|
||||||
|
void physics();
|
||||||
|
|
||||||
extern renderbuffer *glbuf;
|
extern renderbuffer *glbuf;
|
||||||
extern eGeometry gwhere;
|
extern eGeometry gwhere;
|
||||||
extern bool no_fog;
|
extern bool no_fog;
|
||||||
|
@ -267,6 +267,7 @@ void saveHighQualityShot(const char *fname, const char *caption, int fade) {
|
|||||||
if(rug::rugged) {
|
if(rug::rugged) {
|
||||||
if(!rug::renderonce) rug::prepareTexture();
|
if(!rug::renderonce) rug::prepareTexture();
|
||||||
glbuf.enable();
|
glbuf.enable();
|
||||||
|
if(rug::in_crystal()) rug::physics();
|
||||||
rug::drawRugScene();
|
rug::drawRugScene();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user