X-Git-Url: https://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/fc46251027e2c65bff081cc04939ff13015501aa..ba19b133bf87936dc606dd994f56f433a278b768:/src/gui/lbxgui.c diff --git a/src/gui/lbxgui.c b/src/gui/lbxgui.c index 9afcaa8..bb9e5e5 100644 --- a/src/gui/lbxgui.c +++ b/src/gui/lbxgui.c @@ -1,7 +1,7 @@ /* * 2ooM: The Master of Orion II Reverse Engineering Project * Graphical tool for inspecting LBX archives. - * Copyright (C) 2010 Nick Bowler + * Copyright (C) 2010, 2014 Nick Bowler * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -100,12 +100,12 @@ static void tick(void *p, double delta) elapsed -= seconds_per_frame; if (++newframe >= image->frames) { - if (!info.looping) { + if (image->leadin == image->frames - 1) { gtk_toggle_button_set_active(play, FALSE); break; } - newframe = info.loopstart; + newframe = image->leadin; } }