Changed: #1461 Bad minimum value for comparing fast swim speed causes random switching between fast and slow swim speed particle effects

This commit is contained in:
kaetemi 2012-04-13 03:06:52 +02:00
parent b13f0dcb34
commit ac948b8a53

View file

@ -64,7 +64,7 @@ CGroundFXManager::CGroundFXManager() :
_MinSpeed(1.5f), _MinSpeed(1.5f),
_MaxSpeed(6.f), _MaxSpeed(6.f),
_SpeedWaterWalkFast(3.f), _SpeedWaterWalkFast(3.f),
_SpeedWaterSwimFast(3.f), _SpeedWaterSwimFast(2.f),
_MaxDist(50.f), _MaxDist(50.f),
_MaxNumFX(10), _MaxNumFX(10),
_NumFX(0), _NumFX(0),
@ -495,7 +495,7 @@ void CGroundFXManager::update(const NLMISC::CVectorD &camPos)
break; break;
case CInstance::Swim: case CInstance::Swim:
if (speed == 0.f) fxName = "StepSwimIdle.ps"; if (speed == 0.f) fxName = "StepSwimIdle.ps";
else if (speed > _SpeedWaterWalkFast) else if (speed > _SpeedWaterSwimFast)
{ {
fxName = "StepSwimSpeed.ps"; fxName = "StepSwimSpeed.ps";
fxNameUnderWater = "StepSwimSpeedUnderWater.ps"; fxNameUnderWater = "StepSwimSpeedUnderWater.ps";