From: Laszlo T. <ave...@us...> - 2004-08-20 13:07:27
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30710 Modified Files: Actor.cpp Log Message: Fixed some remaining variable types in Actor.cpp Index: Actor.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/Core/Actor.cpp,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** Actor.cpp 20 Aug 2004 13:03:42 -0000 1.62 --- Actor.cpp 20 Aug 2004 13:07:16 -0000 1.63 *************** *** 223,227 **** /** Returns a Stat value (Base Value + Mod) */ ! long Actor::GetStat(unsigned int StatIndex) { if (StatIndex >= MAX_STATS) { --- 223,227 ---- /** Returns a Stat value (Base Value + Mod) */ ! ieDword Actor::GetStat(unsigned int StatIndex) { if (StatIndex >= MAX_STATS) { *************** *** 305,317 **** return true; } ! long Actor::GetMod(unsigned int StatIndex) { if (StatIndex >= MAX_STATS) { return 0xdadadada; } ! return Modified[StatIndex] - BaseStats[StatIndex]; } /** Returns a Stat Base Value */ ! long Actor::GetBase(unsigned int StatIndex) { if (StatIndex >= MAX_STATS) { --- 305,317 ---- return true; } ! int Actor::GetMod(unsigned int StatIndex) { if (StatIndex >= MAX_STATS) { return 0xdadadada; } ! return (signed) Modified[StatIndex] - (signed) BaseStats[StatIndex]; } /** Returns a Stat Base Value */ ! ieDword Actor::GetBase(unsigned int StatIndex) { if (StatIndex >= MAX_STATS) { *************** *** 322,326 **** /** Sets a Stat Base Value */ ! bool Actor::SetBase(unsigned int StatIndex, long Value) { if (StatIndex >= MAX_STATS) { --- 322,326 ---- /** Sets a Stat Base Value */ ! bool Actor::SetBase(unsigned int StatIndex, ieDword Value) { if (StatIndex >= MAX_STATS) { *************** *** 353,358 **** returns the change */ ! int Actor::NewStat(unsigned int StatIndex, long ModifierValue, ! long ModifierType) { int oldmod = Modified[StatIndex]; --- 353,357 ---- returns the change */ ! int Actor::NewStat(unsigned int StatIndex, ieDword ModifierValue, ieDword ModifierType) { int oldmod = Modified[StatIndex]; |