<div class="gmail_quote">On Sun, Aug 2, 2009 at 6:48 PM, <span dir="ltr"><<a href="mailto:dkasak13@users.sourceforge.net">dkasak13@users.sourceforge.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Revision: 43022<br>
<a href="http://scummvm.svn.sourceforge.net/scummvm/?rev=43022&view=rev" target="_blank">http://scummvm.svn.sourceforge.net/scummvm/?rev=43022&view=rev</a><br>
Author: dkasak13<br>
Date: 2009-08-03 01:48:15 +0000 (Mon, 03 Aug 2009)<br>
<br>
Log Message:<br>
-----------<br>
* Fixed bug which made characters talk with the wrong colour; the colour indexes are indexed from 1 in the data files so we need to subtract 1.<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Modified: scummvm/branches/gsoc2009-draci/engines/draci/game.cpp<br>
===================================================================<br>
--- scummvm/branches/gsoc2009-draci/engines/draci/game.cpp 2009-08-03 01:21:04 UTC (rev 43021)<br>
+++ scummvm/branches/gsoc2009-draci/engines/draci/game.cpp 2009-08-03 01:48:15 UTC (rev 43022)<br>
@@ -54,7 +54,7 @@<br>
for (i = 0; i < numPersons; ++i) {<br>
_persons[i]._x = personData.readUint16LE();<br>
_persons[i]._y = personData.readUint16LE();<br>
- _persons[i]._fontColour = personData.readByte();<br>
+ _persons[i]._fontColour = personData.readByte() - 1;<br></blockquote></div><div><br></div>I don't believe this is right. FonColor is byte (0..255) and therefore it cannot contain numbers 1..256 which you would need to index the palette with subtracting 1. maybe try the solution I have just sent to you.<br>
-- <br>Robert Špalek <<a href="mailto:rspalek@gmail.com">rspalek@gmail.com</a>><br>