mirror of https://github.com/PrimeDecomp/prime.git
Don't use final as variable name
This commit is contained in:
parent
c4045da4b3
commit
95c00f709d
|
@ -12,8 +12,8 @@ CAABox COBBox::CalculateAABox(const CTransform4f& xf) const { return CAABox(CVec
|
|||
COBBox COBBox::FromAABox(const CAABox& box, const CTransform4f& xf) {
|
||||
CVector3f center = box.GetCenterPoint();
|
||||
CVector3f extents = box.GetMaxPoint() - center;
|
||||
CTransform4f final = xf * CTransform4f::Translate(center);
|
||||
return COBBox(final, extents);
|
||||
CTransform4f finalTransform = xf * CTransform4f::Translate(center);
|
||||
return COBBox(finalTransform, extents);
|
||||
}
|
||||
|
||||
bool COBBox::LineIntersectsBox(const CMRay& ray, float& penetration) const { return false; }
|
||||
|
|
|
@ -18,7 +18,7 @@ s32 __CARDClearStatus(s32 chan);
|
|||
void __CARDSetDiskID(const DVDDiskID* id);
|
||||
static s32 Retry(s32 chan);
|
||||
|
||||
BOOL OnReset(BOOL final);
|
||||
BOOL OnReset(BOOL f);
|
||||
static OSResetFunctionInfo ResetFunctionInfo = {OnReset, 127};
|
||||
|
||||
void __CARDDefaultApiCallback(s32 chan, s32 result) {}
|
||||
|
@ -545,8 +545,8 @@ s32 CARDFreeBlocks(s32 chan, s32* byteNotUsed, s32* filesNotUsed) {
|
|||
return __CARDPutControlBlock(card, CARD_RESULT_READY);
|
||||
}
|
||||
|
||||
static BOOL OnReset(BOOL final) {
|
||||
if (!final) {
|
||||
static BOOL OnReset(BOOL f) {
|
||||
if (!f) {
|
||||
if (CARDUnmount(0) == CARD_RESULT_BUSY || CARDUnmount(1) == CARD_RESULT_BUSY) {
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
@ -694,7 +694,7 @@ void PADSetAnalogMode(u32 mode) {
|
|||
OSRestoreInterrupts(enabled);
|
||||
}
|
||||
|
||||
static BOOL OnReset(BOOL final) {
|
||||
static BOOL OnReset(BOOL f) {
|
||||
static BOOL recalibrated = FALSE;
|
||||
BOOL sync;
|
||||
|
||||
|
@ -702,7 +702,7 @@ static BOOL OnReset(BOOL final) {
|
|||
PADSetSamplingCallback(NULL);
|
||||
}
|
||||
|
||||
if (!final) {
|
||||
if (!f) {
|
||||
sync = PADSync();
|
||||
if (!recalibrated && sync) {
|
||||
recalibrated = PADRecalibrate(PAD_CHAN0_BIT | PAD_CHAN1_BIT | PAD_CHAN2_BIT | PAD_CHAN3_BIT);
|
||||
|
|
Loading…
Reference in New Issue