From 7a8e9b31982b09a2cfcb6f58f0c4102f632943e1 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 21 Jun 2010 09:39:58 +0200 Subject: [PATCH] Changed: #825 Remove all warning when compiling Ryzom --- .../tools/3d/object_viewer/object_viewer.cpp | 18 +++++++++--------- .../3d/object_viewer/particle_workspace.cpp | 2 +- .../3d/object_viewer/particle_workspace.h | 2 +- .../3d/object_viewer/texture_anim_dlg.cpp | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/code/nel/tools/3d/object_viewer/object_viewer.cpp b/code/nel/tools/3d/object_viewer/object_viewer.cpp index f4a87d56b..5efa70010 100644 --- a/code/nel/tools/3d/object_viewer/object_viewer.cpp +++ b/code/nel/tools/3d/object_viewer/object_viewer.cpp @@ -1729,7 +1729,7 @@ void CObjectViewer::serial (NLMISC::IStream& f) ParticleWorkspaceFilename = ""; } // First instance - uint firstInstance = _ListInstance.size(); + uint firstInstance = (uint)_ListInstance.size(); // Read information std::vector readed; @@ -2211,7 +2211,7 @@ uint CObjectViewer::addMesh (NL3D::IShape* pMeshShape, const char* meshName, uin } // Return the instance index - return _ListInstance.size()-1; + return (uint)_ListInstance.size()-1; } else return 0xffffffff; @@ -2291,13 +2291,13 @@ uint CObjectViewer::addCamera (const NL3D::CCameraInfo &cameraInfo, const char* iInfo->Saved.CameraInfo = cameraInfo; iInfo->Saved.Camera = true; _ListInstance.push_back (iInfo); - _Cameras.push_back (_ListInstance.size()-1); + _Cameras.push_back ((uint)_ListInstance.size()-1); // Reinit camera initCamera (); // Return the instance index - return _ListInstance.size()-1; + return (uint)_ListInstance.size()-1; } // *************************************************************************** @@ -2353,7 +2353,7 @@ uint CObjectViewer::addSkel (NL3D::IShape* pSkelShape, const char* skelName) _SkeletonScaleDlg->setSkeletonToEdit(skelModel, skelName); // Return the instance - return _ListInstance.size()-1; + return (uint)_ListInstance.size()-1; } return 0xffffffff; } @@ -2773,7 +2773,7 @@ void CObjectViewer::evalSoundTrack (float lastTime, float currentTime) uint CObjectViewer::addInstanceGroup(NL3D::CInstanceGroup *ig) { // First instance - uint first = _ListInstance.size(); + uint first = (uint)_ListInstance.size(); // Add all models to the scene ig->addToScene(*CNELU::Scene, CNELU::Driver); @@ -3184,7 +3184,7 @@ bool CObjectViewer::createVegetableLandscape() // progress dlgProgress.ProgressText.SetWindowText("Loading Zones..."); dlgProgress.ProgressBar.SetPos(0); - uint nbZones= _VegetableLandscapeZoneNames.size(); + uint nbZones= (uint)_VegetableLandscapeZoneNames.size(); for(uint i=0; igetTextureGroup()->setTextures(&textureList[0], textureList.size()); + P->getTextureGroup()->setTextures(&textureList[0], (uint)textureList.size()); } void CTextureAnimDlg::CGradientInterface::displayValue(CDC *dc, uint index, sint x, sint y) { @@ -350,7 +350,7 @@ void CTextureAnimDlg::CGradientInterface::CTextureWrapper::set(NL3D::ITexture *t textureList[Index] = t; - P->getTextureGroup()->setTextures(&textureList[0], textureList.size()); + P->getTextureGroup()->setTextures(&textureList[0], (uint)textureList.size()); Dlg->invalidateGrad(); }