Skip to content
Permalink
Browse files

Server/Misc: Fix Warning using obsolete operator / between float and …

…enumeration.

Signed-off-by: AriDEV <aridev666@gmail.com>
  • Loading branch information...
AriDEV committed Oct 28, 2019
1 parent 426bb2d commit 76d0eb09fcb0b253099f707f24cd88bc008a4277
@@ -383,8 +383,8 @@ float Transport::CalculateSegmentPos(float now)
KeyFrame const& frame = *_currentFrame;
const float speed = float(m_goInfo->moTransport.moveSpeed);
const float accel = float(m_goInfo->moTransport.accelRate);
float timeSinceStop = frame.TimeFrom + (now - (1.0f/IN_MILLISECONDS) * frame.DepartureTime);
float timeUntilStop = frame.TimeTo - (now - (1.0f/IN_MILLISECONDS) * frame.DepartureTime);
float timeSinceStop = frame.TimeFrom + (now - (1.0f/float(IN_MILLISECONDS)) * frame.DepartureTime);
float timeUntilStop = frame.TimeTo - (now - (1.0f/float(IN_MILLISECONDS)) * frame.DepartureTime);
float segmentPos, dist;
float accelTime = _transportInfo->accelTime;
float accelDist = _transportInfo->accelDist;
@@ -33,11 +33,11 @@ namespace Movement
{
struct {
float x, y, z;
} f = { 0.0f, 0.0f, 0.0f };
} f;
uint64 target;
float angle;

FacingInfo() : target(0), angle(0.0f) { }
FacingInfo() : angle(0.0f) { f.x = 0.0f; f.y = 0.0f; f.z = 0.0f; }
};

struct MoveSplineInitArgs

0 comments on commit 76d0eb0

Please sign in to comment.
You can’t perform that action at this time.