From: Willem J. P. <wjp...@us...> - 2007-01-30 19:24:42
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/FXOpcodes In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv22037/plugins/FXOpcodes Modified Files: FXOpc.cpp Log Message: fix colour effect used for effects 0x08, 0x09 Index: FXOpc.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/FXOpcodes/FXOpc.cpp,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** FXOpc.cpp 30 Jan 2007 17:05:27 -0000 1.52 --- FXOpc.cpp 30 Jan 2007 19:24:23 -0000 1.53 *************** *** 981,985 **** // FIXME: figure out exact brightness int location = (fx->Parameter2 & 0xF) + 8*((fx->Parameter2 & 0xF0)>>4); ! target->SetColorMod(location, RGBModifier::TINT, -1, fx->Parameter1 >> 8, fx->Parameter1 >> 16, fx->Parameter1 >> 24); --- 981,985 ---- // FIXME: figure out exact brightness int location = (fx->Parameter2 & 0xF) + 8*((fx->Parameter2 & 0xF0)>>4); ! target->SetColorMod(location, RGBModifier::ADD, -1, fx->Parameter1 >> 8, fx->Parameter1 >> 16, fx->Parameter1 >> 24); *************** *** 995,999 **** int location = (fx->Parameter2 & 0xF) + 8*((fx->Parameter2 & 0xF0)>>4); int speed = (fx->Parameter2 >> 16) & 0xFF; ! target->SetColorMod(location, RGBModifier::TINT, speed, fx->Parameter1 >> 8, fx->Parameter1 >> 16, fx->Parameter1 >> 24); --- 995,999 ---- int location = (fx->Parameter2 & 0xF) + 8*((fx->Parameter2 & 0xF0)>>4); int speed = (fx->Parameter2 >> 16) & 0xFF; ! target->SetColorMod(location, RGBModifier::ADD, speed, fx->Parameter1 >> 8, fx->Parameter1 >> 16, fx->Parameter1 >> 24); |