From: Laszlo T. <ave...@us...> - 2004-09-17 17:26:34
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/CREImporter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11132 Modified Files: CREImp.cpp Log Message: fixed CREImp to load signed word/byte values Index: CREImp.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/CREImporter/CREImp.cpp,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** CREImp.cpp 13 Sep 2004 20:19:45 -0000 1.47 --- CREImp.cpp 17 Sep 2004 17:26:24 -0000 1.48 *************** *** 231,281 **** act->BaseStats[IE_HIDEINSHADOWS]=tmpByte; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ARMORCLASS]=tmpWord; str->ReadWord( &tmpWord ); //skipping a word str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACCRUSHINGMOD]=tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACMISSILEMOD]=tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACPIERCINGMOD]=tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACSLASHINGMOD]=tmpWord; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_THAC0]=tmpByte; str->Read( &tmpByte, 1 ); act->BaseStats[IE_NUMBEROFATTACKS]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSDEATH]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSWANDS]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSPOLY]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSBREATH]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSSPELL]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTFIRE]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCOLD]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTELECTRICITY]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTACID]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGIC]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICFIRE]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICCOLD]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTSLASHING]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCRUSHING]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTPIERCING]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMISSILE]=tmpByte; //this is used for unused prof points count str->Read( &tmpByte, 1 ); --- 231,281 ---- act->BaseStats[IE_HIDEINSHADOWS]=tmpByte; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ARMORCLASS]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); //skipping a word str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACCRUSHINGMOD]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACMISSILEMOD]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACPIERCINGMOD]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACSLASHINGMOD]=(ieWordSigned) tmpWord; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_THAC0]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); act->BaseStats[IE_NUMBEROFATTACKS]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSDEATH]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSWANDS]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSPOLY]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSBREATH]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSSPELL]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTFIRE]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCOLD]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTELECTRICITY]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTACID]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGIC]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICFIRE]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICCOLD]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTSLASHING]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCRUSHING]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTPIERCING]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMISSILE]=(ieByteSigned) tmpByte; //this is used for unused prof points count str->Read( &tmpByte, 1 ); *************** *** 547,597 **** act->BaseStats[IE_HIDEINSHADOWS]=tmpByte; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ARMORCLASS]=tmpWord; str->ReadWord( &tmpWord ); //skipping a word str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACCRUSHINGMOD]=tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACMISSILEMOD]=tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACPIERCINGMOD]=tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACSLASHINGMOD]=tmpWord; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_THAC0]=tmpByte; str->Read( &tmpByte, 1 ); act->BaseStats[IE_NUMBEROFATTACKS]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSDEATH]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSWANDS]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSPOLY]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSBREATH]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSSPELL]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTFIRE]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCOLD]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTELECTRICITY]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTACID]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGIC]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICFIRE]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICCOLD]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTSLASHING]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCRUSHING]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTPIERCING]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMISSILE]=tmpByte; str->Read( &tmpByte, 1 ); act->BaseStats[IE_DETECTILLUSIONS]=tmpByte; --- 547,597 ---- act->BaseStats[IE_HIDEINSHADOWS]=tmpByte; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ARMORCLASS]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); //skipping a word str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACCRUSHINGMOD]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACMISSILEMOD]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACPIERCINGMOD]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACSLASHINGMOD]=(ieWordSigned) tmpWord; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_THAC0]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); act->BaseStats[IE_NUMBEROFATTACKS]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSDEATH]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSWANDS]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSPOLY]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSBREATH]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSSPELL]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTFIRE]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCOLD]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTELECTRICITY]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTACID]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGIC]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICFIRE]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICCOLD]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTSLASHING]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCRUSHING]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTPIERCING]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMISSILE]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); act->BaseStats[IE_DETECTILLUSIONS]=tmpByte; *************** *** 709,755 **** act->BaseStats[IE_HIDEINSHADOWS]=tmpByte; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ARMORCLASS]=tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACCRUSHINGMOD]=tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACMISSILEMOD]=tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACPIERCINGMOD]=tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACSLASHINGMOD]=tmpWord; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_THAC0]=tmpByte;//Unknown in CRE V2.2 str->Read( &tmpByte, 1 ); act->BaseStats[IE_NUMBEROFATTACKS]=tmpByte;//Unknown in CRE V2.2 str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSDEATH]=tmpByte;//Fortitude Save in V2.2 str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSWANDS]=tmpByte;//Reflex Save in V2.2 str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSPOLY]=tmpByte;// will Save in V2.2 str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTFIRE]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCOLD]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTELECTRICITY]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTACID]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGIC]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICFIRE]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICCOLD]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTSLASHING]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCRUSHING]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTPIERCING]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMISSILE]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_MAGICDAMAGERESISTANCE]=tmpByte; str->Seek( 6, GEM_CURRENT_POS ); str->Read( &tmpByte, 1 ); --- 709,755 ---- act->BaseStats[IE_HIDEINSHADOWS]=tmpByte; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ARMORCLASS]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACCRUSHINGMOD]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACMISSILEMOD]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACPIERCINGMOD]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACSLASHINGMOD]=(ieWordSigned) tmpWord; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_THAC0]=(ieByteSigned) tmpByte;//Unknown in CRE V2.2 str->Read( &tmpByte, 1 ); act->BaseStats[IE_NUMBEROFATTACKS]=tmpByte;//Unknown in CRE V2.2 str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSDEATH]=(ieByteSigned) tmpByte;//Fortitude Save in V2.2 str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSWANDS]=(ieByteSigned) tmpByte;//Reflex Save in V2.2 str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSPOLY]=(ieByteSigned) tmpByte;// will Save in V2.2 str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTFIRE]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCOLD]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTELECTRICITY]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTACID]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGIC]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICFIRE]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICCOLD]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTSLASHING]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCRUSHING]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTPIERCING]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMISSILE]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_MAGICDAMAGERESISTANCE]=(ieByteSigned) tmpByte; str->Seek( 6, GEM_CURRENT_POS ); str->Read( &tmpByte, 1 ); *************** *** 845,895 **** act->BaseStats[IE_HIDEINSHADOWS]=tmpByte; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ARMORCLASS]=tmpWord; str->ReadWord( &tmpWord ); //skipping a word str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACCRUSHINGMOD]=tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACMISSILEMOD]=tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACPIERCINGMOD]=tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACSLASHINGMOD]=tmpWord; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_THAC0]=tmpByte; str->Read( &tmpByte, 1 ); act->BaseStats[IE_NUMBEROFATTACKS]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSDEATH]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSWANDS]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSPOLY]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSBREATH]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSSPELL]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTFIRE]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCOLD]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTELECTRICITY]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTACID]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGIC]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICFIRE]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICCOLD]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTSLASHING]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCRUSHING]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTPIERCING]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMISSILE]=tmpByte; str->Read( &tmpByte, 1 ); act->BaseStats[IE_DETECTILLUSIONS]=tmpByte; --- 845,895 ---- act->BaseStats[IE_HIDEINSHADOWS]=tmpByte; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ARMORCLASS]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); //skipping a word str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACCRUSHINGMOD]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACMISSILEMOD]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACPIERCINGMOD]=(ieWordSigned) tmpWord; str->ReadWord( &tmpWord ); ! act->BaseStats[IE_ACSLASHINGMOD]=(ieWordSigned) tmpWord; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_THAC0]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); act->BaseStats[IE_NUMBEROFATTACKS]=tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSDEATH]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSWANDS]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSPOLY]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSBREATH]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_SAVEVSSPELL]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTFIRE]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCOLD]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTELECTRICITY]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTACID]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGIC]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICFIRE]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMAGICCOLD]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTSLASHING]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTCRUSHING]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTPIERCING]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); ! act->BaseStats[IE_RESISTMISSILE]=(ieByteSigned) tmpByte; str->Read( &tmpByte, 1 ); act->BaseStats[IE_DETECTILLUSIONS]=tmpByte; |