rogueviz:: presentation:: show animation correctly

This commit is contained in:
Zeno Rogue committed 2026-11-21 12:30:20 +01:00
1 parent 4fd4cfd7a8
commit 1238b4530d
1 file changed
+1 -3
+1 -3
View File
@@ -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])) {