mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 09:36:15 +00:00
Changed: #878 Fix typos in comments/code
This commit is contained in:
parent
d74082c9c2
commit
dc5b3628ec
5 changed files with 13 additions and 12 deletions
|
@ -150,7 +150,7 @@ double CAnimationMisc::getAnimationLength(UAnimationSet *animationSet, const std
|
||||||
length = getAnimationLength(animationSet, idAnim);
|
length = getAnimationLength(animationSet, idAnim);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the lenght of the animation or 0 is any pb.
|
// Return the length of the animation or 0 is any pb.
|
||||||
return length;
|
return length;
|
||||||
}// getAnimationLength //
|
}// getAnimationLength //
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ double CAnimationMisc::getAnimationLength(UAnimationSet *animationSet, uint idAn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the lenght of the animation or 0 is any pb.
|
// Return the length of the animation or 0 is any pb.
|
||||||
return length;
|
return length;
|
||||||
}// getAnimationLength //
|
}// getAnimationLength //
|
||||||
|
|
||||||
|
|
|
@ -1031,6 +1031,7 @@ bool CCharacterCL::isUnknownRace() const
|
||||||
//-----------------------------------------------
|
//-----------------------------------------------
|
||||||
// getAttackHeight :
|
// getAttackHeight :
|
||||||
// Return the atk height.
|
// Return the atk height.
|
||||||
|
// \todo GUIGUI : height relative to attacker instead of global height
|
||||||
//-----------------------------------------------
|
//-----------------------------------------------
|
||||||
CCharacterCL::TAtkHeight CCharacterCL::getAttackHeight(CEntityCL *target, BODY::TBodyPart localisation, BODY::TSide side) const
|
CCharacterCL::TAtkHeight CCharacterCL::getAttackHeight(CEntityCL *target, BODY::TBodyPart localisation, BODY::TSide side) const
|
||||||
{
|
{
|
||||||
|
@ -6420,23 +6421,23 @@ void CCharacterCL::updatePosCombatFloat(double /* frameTimeRemaining */, CEntity
|
||||||
{
|
{
|
||||||
dist2Dest(vectToDest.norm());
|
dist2Dest(vectToDest.norm());
|
||||||
// Compute the time to reach the destination at the max speed.
|
// Compute the time to reach the destination at the max speed.
|
||||||
double lenghtOfTimeToDest = 0.0; // 0 = No Speed Limit
|
double lengthOfTimeToDest = 0.0; // 0 = No Speed Limit
|
||||||
_FirstPos = _DestPos;
|
_FirstPos = _DestPos;
|
||||||
_DestTime = _LastFrameTime + lenghtOfTimeToDest + ClientCfg.ChaseReactionTime;
|
_DestTime = _LastFrameTime + lengthOfTimeToDest + ClientCfg.ChaseReactionTime;
|
||||||
_FirstTime = _DestTime;
|
_FirstTime = _DestTime;
|
||||||
/*
|
/*
|
||||||
// The time remaining will be enough to reach the destination
|
// The time remaining will be enough to reach the destination
|
||||||
if(frameTimeRemaining >= lenghtOfTimeToDest)
|
if(frameTimeRemaining >= lengthOfTimeToDest)
|
||||||
{
|
{
|
||||||
_FirstPos = _DestPos;
|
_FirstPos = _DestPos;
|
||||||
_DestTime = _LastFrameTime + lenghtOfTimeToDest + ClientCfg.ChaseReactionTime;
|
_DestTime = _LastFrameTime + lengthOfTimeToDest + ClientCfg.ChaseReactionTime;
|
||||||
_FirstTime = _DestTime;
|
_FirstTime = _DestTime;
|
||||||
}
|
}
|
||||||
// The time remaining is not enough to reach the destination at max speed -> compute a first pos possible to reach.
|
// The time remaining is not enough to reach the destination at max speed -> compute a first pos possible to reach.
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_FirstPos = pos() + vectToDest*frameTimeRemaining/lenghtOfTimeToDest;
|
_FirstPos = pos() + vectToDest*frameTimeRemaining/lengthOfTimeToDest;
|
||||||
_DestTime = _LastFrameTime + lenghtOfTimeToDest + ClientCfg.ChaseReactionTime;
|
_DestTime = _LastFrameTime + lengthOfTimeToDest + ClientCfg.ChaseReactionTime;
|
||||||
_FirstTime = _LastFrameTime + frameTimeRemaining + ClientCfg.ChaseReactionTime;
|
_FirstTime = _LastFrameTime + frameTimeRemaining + ClientCfg.ChaseReactionTime;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -45,7 +45,7 @@ namespace NL3D
|
||||||
/// Description of the hours for days / night
|
/// Description of the hours for days / night
|
||||||
struct CLightCycleDesc
|
struct CLightCycleDesc
|
||||||
{
|
{
|
||||||
float RealDayLength; // real lenght of the day, in seconds
|
float RealDayLength; // real length of the day, in seconds
|
||||||
float NumHours; // number of ryzom hours in a day
|
float NumHours; // number of ryzom hours in a day
|
||||||
float NightTransitionStartHour; // start of night transition
|
float NightTransitionStartHour; // start of night transition
|
||||||
float NightTransitionEndHour; // end of night transition
|
float NightTransitionEndHour; // end of night transition
|
||||||
|
|
|
@ -247,7 +247,7 @@ private:
|
||||||
|
|
||||||
// NB : this vector nevers grows
|
// NB : this vector nevers grows
|
||||||
bool _CandidateFXListTouched; // the list of candidate has been modified, so the manager should see which fxs should be instanciated, and which fxs should be removed
|
bool _CandidateFXListTouched; // the list of candidate has been modified, so the manager should see which fxs should be instanciated, and which fxs should be removed
|
||||||
float _SortDistance; // lenght of each distance interval, in meters
|
float _SortDistance; // length of each distance interval, in meters
|
||||||
uint _MaxNumberOfFXInstances; // max number of instances that can be 'alive' at a time
|
uint _MaxNumberOfFXInstances; // max number of instances that can be 'alive' at a time
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
|
|
|
@ -653,14 +653,14 @@ void CWeatherManagerClient::updateThunder(uint64 day, float hour, const CWeather
|
||||||
{
|
{
|
||||||
// if too much time has ellapsed since the last thunder strike, disable it
|
// if too much time has ellapsed since the last thunder strike, disable it
|
||||||
float timeEllapsedSinceStrike = diff(_ThunderStrikeDate, t1) * wc.WFP->MinThunderPeriod ;
|
float timeEllapsedSinceStrike = diff(_ThunderStrikeDate, t1) * wc.WFP->MinThunderPeriod ;
|
||||||
if (timeEllapsedSinceStrike >= wc.WFP->ThunderLenght)
|
if (timeEllapsedSinceStrike >= wc.WFP->ThunderLength)
|
||||||
{
|
{
|
||||||
_ThunderStrike = false;
|
_ThunderStrike = false;
|
||||||
_ThunderLevel = 0.f;
|
_ThunderLevel = 0.f;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_ThunderLevel = wc.WFP->ThunderLenght != 0.f ? 1.f - (timeEllapsedSinceStrike / wc.WFP->ThunderLenght)
|
_ThunderLevel = wc.WFP->ThunderLength != 0.f ? 1.f - (timeEllapsedSinceStrike / wc.WFP->ThunderLength)
|
||||||
: 0.f;
|
: 0.f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue