From 43de0a28b128f6fda05218d0206562ffdf8aff26 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 20 Jul 2010 22:49:11 +0200 Subject: [PATCH] Changed: #963 Floating point exceptions --- code/ryzom/client/src/character_cl.cpp | 2 +- code/ryzom/client/src/entity_cl.cpp | 25 ++++++++++++++----------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/code/ryzom/client/src/character_cl.cpp b/code/ryzom/client/src/character_cl.cpp index ec078fba5..4e7e0690d 100644 --- a/code/ryzom/client/src/character_cl.cpp +++ b/code/ryzom/client/src/character_cl.cpp @@ -2669,7 +2669,7 @@ KeyChosen: } // On Rotation/About Face - CVector dirEndA; + CVector dirEndA(0.0f, 0.0f, 0.0f); switch(onRotation(curAnimState, dirEndA)) { // On Rot Left diff --git a/code/ryzom/client/src/entity_cl.cpp b/code/ryzom/client/src/entity_cl.cpp index 29b9c4720..e046464b3 100644 --- a/code/ryzom/client/src/entity_cl.cpp +++ b/code/ryzom/client/src/entity_cl.cpp @@ -641,6 +641,15 @@ void CEntityCL::init() // _Name = NULL; + // Bot Objects flags + _DisplayInRadar= true; + _DisplayOSDName= true; + _DisplayOSDBars= true; + _DisplayOSDForceOver= false; + _Traversable= true; + _CanTurn = true; // must be initialized beforce calling front() + _ForbidClipping = false; + // Entity Up. up(CVector(0.f, 0.f, 1.f)); // Orientation of the entity. @@ -755,15 +764,6 @@ void CEntityCL::init() _TheoreticalOrientation = -10.0f; // Init value to know if it has been changed. #endif // TMP_DEBUG_GUIGUI - // Bot Objects flags - _DisplayInRadar= true; - _DisplayOSDName= true; - _DisplayOSDBars= true; - _DisplayOSDForceOver= false; - _Traversable= true; - _CanTurn = true; - _ForbidClipping = false; - _VisualSelectionTime= 0; _VisualSelectionBlinked= false; _InSceneInterfaceEnabled = true; @@ -1668,6 +1668,8 @@ void CEntityCL::snapToGround() case EGSPD::CPeople::Zorai : waterOffset = ClientCfg.ZoraiWaterOffset; break; + default: + break; } vect.z = waterHeight + waterOffset; @@ -2747,12 +2749,13 @@ const char *CEntityCL::getBoneNameFromBodyPart(BODY::TBodyPart part, BODY::TSide BODY::TBodyPart hominPart = BODY::getMatchingHominBodyPart(part); switch(hominPart) { - case BODY::HHead: return "Bip01 Head"; + case BODY::HHead: return "Bip01 Head"; case BODY::HChest: return "Bip01 Spine2"; - case BODY::HArms: return side == BODY::Left ? "Bip01 L UpperArm" : "Bip01 R UpperArm"; + case BODY::HArms: return side == BODY::Left ? "Bip01 L UpperArm" : "Bip01 R UpperArm"; case BODY::HHands: return side == BODY::Left ? "Bip01 L Hand" : "Bip01 R Hand"; case BODY::HLegs: return side == BODY::Left ? "Bip01 L Calf" : "Bip01 R Calf"; case BODY::HFeet: return side == BODY::Left ? "Bip01 L Foot" : "Bip01 R Foot"; + default: break; } return NULL; }