mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 00:07:10 +00:00
rogueviz:: presentation:: show animation correctly
This commit is contained in:
1 parent
4fd4cfd7a8
commit
1238b4530d
1 file changed
+1
-3
@@ -383,9 +383,7 @@ void read_all(int fd, void *buf, int cnt) {
|
||||
/* note: this loads the whole animation uncompressed into memory, so it is suitable only for short presentations */
|
||||
void show_animation(presmode mode, string s, int sx, int sy, int frames, int fps) {
|
||||
#if CAP_VIDEO
|
||||
if(mode == pmStartAll || mode == pmStart) {
|
||||
/* load only once */
|
||||
if(textures.count(s + "@0")) return;
|
||||
if(mode == pmStartAll || mode == pmStart) if(!textures.count(s + "@0")) {
|
||||
/* actually load */
|
||||
array<int, 2> tab;
|
||||
if(pipe(&tab[0])) {
|
||||
|
||||
Reference in new issue
Block a user