mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 09:16:18 +00:00
Changed: #963 Floating point exceptions
This commit is contained in:
parent
aa6aa81ca1
commit
720790d759
2 changed files with 15 additions and 12 deletions
|
@ -2669,7 +2669,7 @@ KeyChosen:
|
||||||
}
|
}
|
||||||
|
|
||||||
// On Rotation/About Face
|
// On Rotation/About Face
|
||||||
CVector dirEndA;
|
CVector dirEndA(0.0f, 0.0f, 0.0f);
|
||||||
switch(onRotation(curAnimState, dirEndA))
|
switch(onRotation(curAnimState, dirEndA))
|
||||||
{
|
{
|
||||||
// On Rot Left
|
// On Rot Left
|
||||||
|
|
|
@ -641,6 +641,15 @@ void CEntityCL::init()
|
||||||
|
|
||||||
// _Name = NULL;
|
// _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.
|
// Entity Up.
|
||||||
up(CVector(0.f, 0.f, 1.f));
|
up(CVector(0.f, 0.f, 1.f));
|
||||||
// Orientation of the entity.
|
// Orientation of the entity.
|
||||||
|
@ -755,15 +764,6 @@ void CEntityCL::init()
|
||||||
_TheoreticalOrientation = -10.0f; // Init value to know if it has been changed.
|
_TheoreticalOrientation = -10.0f; // Init value to know if it has been changed.
|
||||||
#endif // TMP_DEBUG_GUIGUI
|
#endif // TMP_DEBUG_GUIGUI
|
||||||
|
|
||||||
// Bot Objects flags
|
|
||||||
_DisplayInRadar= true;
|
|
||||||
_DisplayOSDName= true;
|
|
||||||
_DisplayOSDBars= true;
|
|
||||||
_DisplayOSDForceOver= false;
|
|
||||||
_Traversable= true;
|
|
||||||
_CanTurn = true;
|
|
||||||
_ForbidClipping = false;
|
|
||||||
|
|
||||||
_VisualSelectionTime= 0;
|
_VisualSelectionTime= 0;
|
||||||
_VisualSelectionBlinked= false;
|
_VisualSelectionBlinked= false;
|
||||||
_InSceneInterfaceEnabled = true;
|
_InSceneInterfaceEnabled = true;
|
||||||
|
@ -1668,6 +1668,8 @@ void CEntityCL::snapToGround()
|
||||||
case EGSPD::CPeople::Zorai :
|
case EGSPD::CPeople::Zorai :
|
||||||
waterOffset = ClientCfg.ZoraiWaterOffset;
|
waterOffset = ClientCfg.ZoraiWaterOffset;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
vect.z = waterHeight + waterOffset;
|
vect.z = waterHeight + waterOffset;
|
||||||
|
@ -2753,6 +2755,7 @@ const char *CEntityCL::getBoneNameFromBodyPart(BODY::TBodyPart part, BODY::TSide
|
||||||
case BODY::HHands: return side == BODY::Left ? "Bip01 L Hand" : "Bip01 R Hand";
|
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::HLegs: return side == BODY::Left ? "Bip01 L Calf" : "Bip01 R Calf";
|
||||||
case BODY::HFeet: return side == BODY::Left ? "Bip01 L Foot" : "Bip01 R Foot";
|
case BODY::HFeet: return side == BODY::Left ? "Bip01 L Foot" : "Bip01 R Foot";
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue