Browse Source

Minor adjustments to avoid needless trivial differences to H-uru/Plasma.

msvc10
Christian Walther 13 years ago
parent
commit
b2f8d8c0f0
  1. 12
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtBigNum.cpp
  2. 5
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plAGApplicator.h
  3. 3
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetClient/plNetClientGroup.h

12
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtBigNum.cpp

@ -337,8 +337,8 @@ void BigNum::DivNormalized (const BigNum & a, const BigNum & b, BigNum * remaind
if (quotient) { if (quotient) {
Val borrow = 0; Val borrow = 0;
Val carry = 0; Val carry = 0;
unsigned denomIndex = 0; unsigned denomIndex;
for (; denomIndex != denomCount; ++denomIndex) { for (denomIndex = 0; denomIndex != denomCount; ++denomIndex) {
DVal product = (DVal)(Mul((*denom)[denomIndex], quotient) + carry); DVal product = (DVal)(Mul((*denom)[denomIndex], quotient) + carry);
carry = HIGH(product); carry = HIGH(product);
numer->SetVal(quotientIndex + denomIndex, (DVal)((DVal)(*numer)[quotientIndex + denomIndex] - (DVal)LOW(product) - (DVal)borrow), &borrow); numer->SetVal(quotientIndex + denomIndex, (DVal)((DVal)(*numer)[quotientIndex + denomIndex] - (DVal)LOW(product) - (DVal)borrow), &borrow);
@ -1314,8 +1314,8 @@ void BigNum::Sub (const BigNum & a, Val b) {
const unsigned count = a.Count(); const unsigned count = a.Count();
SetCount(count); SetCount(count);
Val borrow = b; Val borrow = b;
unsigned index = 0; unsigned index;
for (; index < count; ++index) { for (index = 0; index < count; ++index) {
SetVal(index, (DVal)((DVal)a[index] - (DVal)borrow), &borrow); SetVal(index, (DVal)((DVal)a[index] - (DVal)borrow), &borrow);
borrow = (Val)((Val)0 - (Val)borrow); borrow = (Val)((Val)0 - (Val)borrow);
} }
@ -1332,8 +1332,8 @@ void BigNum::Sub (const BigNum & a, const BigNum & b) {
const unsigned bCount = b.Count(); const unsigned bCount = b.Count();
GrowToCount(count, true); GrowToCount(count, true);
Val borrow = 0; Val borrow = 0;
unsigned index = 0; unsigned index;
for (; index < count; ++index) { for (index = 0; index < count; ++index) {
Val bVal = (index < bCount) ? b[index] : (Val)0; Val bVal = (index < bCount) ? b[index] : (Val)0;
SetVal(index, (DVal)((DVal)a[index] - (DVal)bVal - (DVal)borrow), &borrow); SetVal(index, (DVal)((DVal)a[index] - (DVal)bVal - (DVal)borrow), &borrow);
borrow = (Val)((Val)0 - (Val)borrow); borrow = (Val)((Val)0 - (Val)borrow);

5
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plAGApplicator.h

@ -151,8 +151,6 @@ public:
virtual void Read(hsStream *s, hsResMgr *mgr); virtual void Read(hsStream *s, hsResMgr *mgr);
protected: protected:
friend class plAGModifier;
// -- methods -- // -- methods --
virtual void IApply(const plAGModifier *mod, double time) = 0; virtual void IApply(const plAGModifier *mod, double time) = 0;
@ -163,6 +161,9 @@ protected:
plSimulationInterface * IGetSI(const plAGModifier *modifier) const; plSimulationInterface * IGetSI(const plAGModifier *modifier) const;
plObjInterface * IGetGI(const plAGModifier *modifier, UInt16 classIdx) const; plObjInterface * IGetGI(const plAGModifier *modifier, UInt16 classIdx) const;
// Allow plAGModifier to declare IGet?? as friends
friend class plAGModifier;
// -- members -- // -- members --
plAGChannel *fChannel; plAGChannel *fChannel;
hsBool fEnabled; hsBool fEnabled;

3
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetClient/plNetClientGroup.h

@ -100,8 +100,9 @@ public:
std::set<OwnedGroup>::iterator it=IFind(grpId); std::set<OwnedGroup>::iterator it=IFind(grpId);
if (it != fGroups.end()) if (it != fGroups.end())
{ {
OwnedGroup grp(it->fGroup, it->fOwnIt);
fGroups.erase(it); fGroups.erase(it);
fGroups.insert(OwnedGroup(grpId, ownIt)); fGroups.insert(grp);
} }
else else
{ {

Loading…
Cancel
Save