mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Minor adjustments to avoid needless trivial differences to H-uru/Plasma.
This commit is contained in:
@ -337,8 +337,8 @@ void BigNum::DivNormalized (const BigNum & a, const BigNum & b, BigNum * remaind
|
||||
if (quotient) {
|
||||
Val borrow = 0;
|
||||
Val carry = 0;
|
||||
unsigned denomIndex = 0;
|
||||
for (; denomIndex != denomCount; ++denomIndex) {
|
||||
unsigned denomIndex;
|
||||
for (denomIndex = 0; denomIndex != denomCount; ++denomIndex) {
|
||||
DVal product = (DVal)(Mul((*denom)[denomIndex], quotient) + carry);
|
||||
carry = HIGH(product);
|
||||
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();
|
||||
SetCount(count);
|
||||
Val borrow = b;
|
||||
unsigned index = 0;
|
||||
for (; index < count; ++index) {
|
||||
unsigned index;
|
||||
for (index = 0; index < count; ++index) {
|
||||
SetVal(index, (DVal)((DVal)a[index] - (DVal)borrow), &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();
|
||||
GrowToCount(count, true);
|
||||
Val borrow = 0;
|
||||
unsigned index = 0;
|
||||
for (; index < count; ++index) {
|
||||
unsigned index;
|
||||
for (index = 0; index < count; ++index) {
|
||||
Val bVal = (index < bCount) ? b[index] : (Val)0;
|
||||
SetVal(index, (DVal)((DVal)a[index] - (DVal)bVal - (DVal)borrow), &borrow);
|
||||
borrow = (Val)((Val)0 - (Val)borrow);
|
||||
|
@ -151,8 +151,6 @@ public:
|
||||
virtual void Read(hsStream *s, hsResMgr *mgr);
|
||||
|
||||
protected:
|
||||
friend class plAGModifier;
|
||||
|
||||
// -- methods --
|
||||
virtual void IApply(const plAGModifier *mod, double time) = 0;
|
||||
|
||||
@ -163,6 +161,9 @@ protected:
|
||||
plSimulationInterface * IGetSI(const plAGModifier *modifier) const;
|
||||
plObjInterface * IGetGI(const plAGModifier *modifier, UInt16 classIdx) const;
|
||||
|
||||
// Allow plAGModifier to declare IGet?? as friends
|
||||
friend class plAGModifier;
|
||||
|
||||
// -- members --
|
||||
plAGChannel *fChannel;
|
||||
hsBool fEnabled;
|
||||
|
@ -100,8 +100,9 @@ public:
|
||||
std::set<OwnedGroup>::iterator it=IFind(grpId);
|
||||
if (it != fGroups.end())
|
||||
{
|
||||
OwnedGroup grp(it->fGroup, it->fOwnIt);
|
||||
fGroups.erase(it);
|
||||
fGroups.insert(OwnedGroup(grpId, ownIt));
|
||||
fGroups.insert(grp);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user