[Scummvm-cvs-logs] SF.net SVN: scummvm:[42838] scummvm/branches/gsoc2009-draci/engines/draci/ animation.cpp
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Mon Jul 27 06:47:38 CEST 2009
Revision: 42838
http://scummvm.svn.sourceforge.net/scummvm/?rev=42838&view=rev
Author: dkasak13
Date: 2009-07-27 04:47:38 +0000 (Mon, 27 Jul 2009)
Log Message:
-----------
Fixed one more bug related to animations having no frames.
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp 2009-07-27 04:20:27 UTC (rev 42837)
+++ scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp 2009-07-27 04:47:38 UTC (rev 42838)
@@ -52,8 +52,9 @@
void Animation::setRelative(int relx, int rely) {
- // Delete the previous frame
- markDirtyRect(_vm->_screen->getSurface());
+ // Delete the previous frame if there is one
+ if (_frames.size() > 0)
+ markDirtyRect(_vm->_screen->getSurface());
_relX = relx;
_relY = rely;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list