From: <lyn...@us...> - 2009-03-18 17:23:36
|
Revision: 5810 http://gemrb.svn.sourceforge.net/gemrb/?rev=5810&view=rev Author: lynxlupodian Date: 2009-03-18 16:19:32 +0000 (Wed, 18 Mar 2009) Log Message: ----------- CREImp.cpp: added a hack, so actor race can be set properly in cg I think we should be setting all of Modified to BaseStats in GetActor Modified Paths: -------------- gemrb/trunk/gemrb/plugins/CREImporter/CREImp.cpp Modified: gemrb/trunk/gemrb/plugins/CREImporter/CREImp.cpp =================================================================== --- gemrb/trunk/gemrb/plugins/CREImporter/CREImp.cpp 2009-03-16 16:58:27 UTC (rev 5809) +++ gemrb/trunk/gemrb/plugins/CREImporter/CREImp.cpp 2009-03-18 16:19:32 UTC (rev 5810) @@ -712,6 +712,7 @@ act->BaseStats[IE_GENERAL]=tmpByte; str->Read( &tmpByte, 1 ); act->BaseStats[IE_RACE]=tmpByte; + act->Modified[IE_RACE]=tmpByte; str->Read( &tmpByte, 1 ); act->BaseStats[IE_CLASS]=tmpByte; str->Read( &tmpByte, 1 ); @@ -1120,6 +1121,7 @@ act->BaseStats[IE_GENERAL]=tmpByte; str->Read( &tmpByte, 1); act->BaseStats[IE_RACE]=tmpByte; + act->Modified[IE_RACE]=tmpByte; str->Read( &tmpByte, 1); act->BaseStats[IE_CLASS]=tmpByte; str->Read( &tmpByte, 1); @@ -1360,6 +1362,7 @@ act->BaseStats[IE_GENERAL]=tmpByte; str->Read( &tmpByte, 1); act->BaseStats[IE_RACE]=tmpByte; + act->Modified[IE_RACE]=tmpByte; str->Read( &tmpByte, 1); act->BaseStats[IE_CLASS]=tmpByte; str->Read( &tmpByte, 1); @@ -1587,6 +1590,7 @@ act->BaseStats[IE_GENERAL] = tmpByte; str->Read( &tmpByte, 1); act->BaseStats[IE_RACE] = tmpByte; + act->Modified[IE_RACE]=tmpByte; str->Read( &tmpByte, 1); act->BaseStats[IE_CLASS] = tmpByte; str->Read( &tmpByte, 1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |