mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
anims:: fixed some issues with exporting animations
This commit is contained in:
parent
47fab92cf3
commit
3bf2ed1d2d
@ -284,8 +284,11 @@ void saveHighQualityShot(const char *fname, const char *caption, int fade) {
|
||||
glbuf.clear(numi==1 ? backcolor : i ? 0xFFFFFF : 0);
|
||||
|
||||
#if CAP_RUG
|
||||
if(rug::rugged)
|
||||
if(rug::rugged) {
|
||||
if(!rug::renderonce) rug::prepareTexture();
|
||||
glbuf.enable();
|
||||
rug::drawRugScene();
|
||||
}
|
||||
else
|
||||
#endif
|
||||
drawfullmap();
|
||||
@ -510,7 +513,9 @@ bool record_animation() {
|
||||
|
||||
char buf[1000];
|
||||
snprintf(buf, 1000, animfile.c_str(), i);
|
||||
apply();
|
||||
saveHighQualityShot(buf);
|
||||
rollback();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user