Changed: #825 Remove all warning when compiling Ryzom

This commit is contained in:
kervala 2010-07-10 13:27:40 +02:00
parent 616ff314cf
commit 4cc28eb996
7 changed files with 12 additions and 6 deletions

View file

@ -56,12 +56,13 @@ public:
class CMeshMultiLodBuild
{
public:
CMeshMultiLodBuild() : StaticLod(false) { }
/// A slot of mesh for the build
class CBuildSlot
{
public:
CBuildSlot() : MeshGeom(NULL) { }
CBuildSlot() : MeshGeom(NULL), DistMax(0.0f), BlendLength(0.0f), Flags(0) { }
/**
* Flags for the build of a slot
*

View file

@ -349,6 +349,7 @@ void CInstanceLighter::light (const CInstanceGroup &igIn, CInstanceGroup &igOut,
CSurfaceLightGrid::CCellCorner defaultCellCorner;
defaultCellCorner.SunContribution= 0;
defaultCellCorner.Light[0]= 0xFF;
defaultCellCorner.Light[1]= 0xFF;
defaultCellCorner.LocalAmbientId= 0xFF;
// Init the grid.

View file

@ -373,7 +373,6 @@ bool CLodCharacterManager::addRenderCharacterKey(CLodCharacterInstance &instan
float a00, a01, a02;
float a10, a11, a12;
float a20, a21, a22;
sint f8;
uint64 blank= 0;
CRGBA ambient= paramAmbient;
CRGBA diffuse= paramDiffuse;
@ -502,6 +501,8 @@ bool CLodCharacterManager::addRenderCharacterKey(CLodCharacterInstance &instan
if(numVertices)
{
sint f8;
/* NB: order is important for AGP filling optimisation in dstPtr
Pentium2+ optimisation notes:

View file

@ -83,7 +83,7 @@ bool CPackedWorld::raytrace(const NLMISC::CVector &start, const NLMISC::CVector
if (_ZoneGrid.empty()) return false;
++_RaytraceCounter;
float bestDist = FLT_MAX;
NLMISC::CVector bestNormal;
CVector bestNormal(CVector::Null);
CVector currEnd = end;
CVector currInter;
if (_RaytraceCounter == (uint32) ~0)

View file

@ -1525,6 +1525,7 @@ void CPatch::resetTileLightInfluences()
{
// Disable all light influence on this point.
TileLightInfluences[i].Light[0]= 0xFF;
TileLightInfluences[i].Light[1]= 0xFF;
}
}

View file

@ -1421,7 +1421,9 @@ extern "C" void NL3D_expandLightmap (const NL3D_CExpandLightmap* pLightmap)
// Compute current color
CRGBA color0;
CRGBA color1;
color0.A = 255;
color0.set565 (colorTilePtr[srcIndex].Color565);
color1.A = 255;
color1.set565 (colorTilePtr[srcIndex+1].Color565);
expandedUserColorLinePtr[u].blendFromui (color0, color1, srcIndexPixel&0xff);
// Compute current TLI color