mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-19 11:49:09 +00:00
Clean up several more unused local variables
This commit is contained in:
@ -972,7 +972,6 @@ std::vector<PyObject*> cyAvatar::GetAllWithSameMesh(const plString& clothing_nam
|
||||
PyObject* cyAvatar::GetMatchingClothingItem(const plString& clothing_name)
|
||||
{
|
||||
// Get all the clothes that we can wear
|
||||
hsTArray<plClothingItem*> clothingList;
|
||||
plClothingItem* match = plClothingMgr::GetClothingMgr()->GetLRMatch(plClothingMgr::GetClothingMgr()->FindItemByName(clothing_name));
|
||||
if ( match )
|
||||
{
|
||||
|
@ -120,7 +120,6 @@ bool plTimerCallbackManager::CancelCallback(plTimerCallback* pTimer)
|
||||
|
||||
bool plTimerCallbackManager::CancelCallbacksToKey(const plKey& key)
|
||||
{
|
||||
const plKey rKey;
|
||||
bool removed = false;
|
||||
|
||||
for (int i = fCallbacks.Count() - 1; i >= 0 ; i--)
|
||||
|
@ -903,7 +903,7 @@ bool CompareMatrices2(const hsMatrix44 &matA, const hsMatrix44 &matB, float tole
|
||||
bool c32 = fabs(matA.fMap[3][2] - matB.fMap[3][2]) < tolerance;
|
||||
bool c33 = fabs(matA.fMap[3][3] - matB.fMap[3][3]) < tolerance;
|
||||
|
||||
return c00 && c01 && c02 && c03 && c11 && c12 && c13 && c20 && c21 && c22 && c23 && c30 && c31 && c32 && c33;
|
||||
return c00 && c01 && c02 && c03 && c10 && c11 && c12 && c13 && c20 && c21 && c22 && c23 && c30 && c31 && c32 && c33;
|
||||
}
|
||||
|
||||
// IAPPLY
|
||||
|
@ -177,8 +177,6 @@ plSoundBuffer::ELoadReturnVal plWin32StreamingSound::IPreLoadBuffer( bool playWh
|
||||
{
|
||||
plAudioCore::ChannelSelect select = buffer->GetReaderSelect();
|
||||
|
||||
bool streamCompressed = (buffer->HasFlag(plSoundBuffer::kStreamCompressed) != 0);
|
||||
|
||||
/// Open da file
|
||||
plFileName strPath = plFileSystem::GetCWD();
|
||||
|
||||
|
@ -149,9 +149,7 @@ plArmatureModBase::~plArmatureModBase()
|
||||
}
|
||||
|
||||
bool plArmatureModBase::MsgReceive(plMessage* msg)
|
||||
{
|
||||
bool result = false;
|
||||
|
||||
{
|
||||
plArmatureBrain *curBrain = nil;
|
||||
if (fBrains.size() > 0)
|
||||
{
|
||||
|
@ -152,7 +152,6 @@ void plSwimCircularCurrentRegion::GetCurrent(plPhysicalControllerCore *physical,
|
||||
|
||||
physical->GetPositionSim(pos);
|
||||
|
||||
bool applyPull = true;
|
||||
hsVector3 pos2Center(center.fX - pos.fX, center.fY - pos.fY, 0.f);
|
||||
float pullVel;
|
||||
float distSq = pos2Center.MagnitudeSquared();
|
||||
|
@ -1967,7 +1967,6 @@ void plDrawableSpans::SortVisibleSpans(const hsTArray<int16_t>& visList, plPipel
|
||||
|
||||
memset(newStarts, 0, kMaxBufferGroups * kMaxIndexBuffers * sizeof(int16_t));
|
||||
|
||||
uint32_t start = 0;
|
||||
for( i = 0; i < visList.GetCount(); i++ )
|
||||
{
|
||||
plIcicle* span = (plIcicle*)fSpans[visList[i]];
|
||||
|
@ -1450,9 +1450,7 @@ bool plDynaDecalMgr::ICutoutObject(plSceneObject* so, double secs)
|
||||
return retVal;
|
||||
|
||||
plProfile_BeginTiming(Total);
|
||||
int numGot = 0;
|
||||
int j;
|
||||
for( j = 0; j < di->GetNumDrawables(); j++ )
|
||||
for (int j = 0; j < di->GetNumDrawables(); j++)
|
||||
{
|
||||
plDrawableSpans* dr = plDrawableSpans::ConvertNoRef(di->GetDrawable(j));
|
||||
// Nil dr - it hasn't loaded yet or something.
|
||||
|
@ -149,7 +149,6 @@ void plPhysicsSoundMgr::IStopCollision(const CollidePair& cp)
|
||||
|
||||
void plPhysicsSoundMgr::IUpdateCollision(const CollidePair& cp)
|
||||
{
|
||||
const float slideThreshhold = 0.f;
|
||||
hsVector3 v1, v2;
|
||||
plPhysical* physicalA = cp.FirstPhysical();
|
||||
plPhysical* physicalB = cp.SecondPhysical();
|
||||
|
@ -127,8 +127,6 @@ void plCubicRenderTargetModifier::ICreateRenderRequest( int face )
|
||||
bool plCubicRenderTargetModifier::IEval( double secs, float del, uint32_t dirty )
|
||||
{
|
||||
hsPoint3 center;
|
||||
hsMatrix44 mtx, invMtx;
|
||||
int i;
|
||||
|
||||
plRenderRequestMsg *msg;
|
||||
|
||||
@ -150,7 +148,7 @@ bool plCubicRenderTargetModifier::IEval( double secs, float del, uint32_t dir
|
||||
fCubic->SetCameraMatrix(center);
|
||||
|
||||
/// Submit render requests!
|
||||
for( i = 0; i < 6; i++ )
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
if( fRequests[ i ] != nil )
|
||||
{
|
||||
|
@ -1902,7 +1902,6 @@ hsRef<RelVaultNode> VaultCreateNodeAndWait (
|
||||
plVault::NodeTypes nodeType,
|
||||
ENetError * result
|
||||
) {
|
||||
hsRef<RelVaultNode> node;
|
||||
hsRef<RelVaultNode> templateNode = new RelVaultNode;
|
||||
templateNode->SetNodeType(nodeType);
|
||||
|
||||
|
Reference in New Issue
Block a user