[Scummvm-cvs-logs] SF.net SVN: scummvm:[45851] scummvm/trunk/engines/draci/game.cpp
spalek at users.sourceforge.net
spalek at users.sourceforge.net
Thu Nov 12 04:25:10 CET 2009
Revision: 45851
http://scummvm.svn.sourceforge.net/scummvm/?rev=45851&view=rev
Author: spalek
Date: 2009-11-12 03:25:10 +0000 (Thu, 12 Nov 2009)
Log Message:
-----------
Removed 2 TODOs
Modified Paths:
--------------
scummvm/trunk/engines/draci/game.cpp
Modified: scummvm/trunk/engines/draci/game.cpp
===================================================================
--- scummvm/trunk/engines/draci/game.cpp 2009-11-12 03:09:15 UTC (rev 45850)
+++ scummvm/trunk/engines/draci/game.cpp 2009-11-12 03:25:10 UTC (rev 45851)
@@ -1116,9 +1116,11 @@
debugC(1, kDraciLogicDebugLevel, "Entering room %d using gate %d", _newRoom, _newGate);
_vm->_mouse->cursorOff();
- // TODO: maybe wait till all sounds end instead of stopping them.
- // In any case, make sure all sounds are stopped before we deallocate
- // their memory by clearing the cache.
+ // Make sure all sounds are stopped before we deallocate their memory
+ // by clearing the cache. We don't have to wait for sounds to end,
+ // because the timeout for voice is set exactly according to the length
+ // of the sound. If the loop ends earlier, e.g. per user's request, we
+ // do wanna end the sounds immediately.
_vm->_sound->stopAll();
// Clear archives
@@ -1245,8 +1247,9 @@
_hero = anim->getCurrentFramePosition();
// Update our hero coordinates (don't forget that our control point is
- // elsewhere).
- // TODO: what about rounding errors?
+ // elsewhere). This is formula is the exact inverse of the formula
+ // used in positionAnimAsHero() and even rounding errors are exactly
+ // the same.
Drawable *frame = anim->getCurrentFrame();
_hero.x += scummvm_lround(anim->getScaleX() * frame->getWidth() / 2);
_hero.y += scummvm_lround(anim->getScaleY() * frame->getHeight());
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