If frame count is 0, don't try to play the next frame (#129)

ya goofus.
This commit is contained in:
in1tiate 2020-03-21 18:03:12 -05:00 committed by GitHub
parent ac31da6b14
commit 6db808ec60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,10 @@ void AOCharMovie::play(QString p_char, QString p_emote, QString emote_prefix)
this->LoadImageWithStupidMethodForFlipSupport(m_movie->currentImage());
this->show();
this->play_frame_sfx();
ticker->start(m_movie->nextFrameDelay());
// if the frame count is 0 (i.e. it's a static PNG) don't try to play the next frame, ya goofus
if (m_movie->frameCount() != 0) {
ticker->start(m_movie->nextFrameDelay());
}
}
void AOCharMovie::play_frame_sfx()