[Scummvm-cvs-logs] SF.net SVN: scummvm:[44021] scummvm/trunk/engines/kyra/lol.cpp

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Thu Sep 10 00:12:21 CEST 2009


Revision: 44021
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44021&view=rev
Author:   athrxx
Date:     2009-09-09 22:12:21 +0000 (Wed, 09 Sep 2009)

Log Message:
-----------
LOL/Floppy: - fix spell book animation

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/lol.cpp

Modified: scummvm/trunk/engines/kyra/lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/lol.cpp	2009-09-09 21:47:26 UTC (rev 44020)
+++ scummvm/trunk/engines/kyra/lol.cpp	2009-09-09 22:12:21 UTC (rev 44021)
@@ -2993,7 +2993,10 @@
 	int vY = _updateSpellBookCoords[(slot << 1) + 1] + 5;
 
 	char wsaFile[13];
-	snprintf(wsaFile, 13, "write%0d%c.wsa", spell, (_lang == 1) ? 'f' : (_lang == 0 ? 'e' : 'g'));
+	if (_flags.isTalkie)
+		snprintf(wsaFile, 13, "write%0d%c.wsa", spell, (_lang == 1) ? 'f' : (_lang == 0 ? 'e' : 'g'));
+	else
+		snprintf(wsaFile, 13, "write%0d.wsa", spell);
 	snd_playSoundEffect(_updateSpellBookAnimData[(spell << 2) + 3], -1);
 	snd_playSoundEffect(95, -1);
 


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