Fix member variable name

This commit is contained in:
Alayan-stk-2 2018-04-15 06:54:38 +02:00 committed by GitHub
parent 8797f5b1fe
commit 080cecd400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ Kart::Kart (const std::string& ident, unsigned int world_kart_id,
{
m_previous_xyz[i] = getXYZ();
}
time_previous_counter = 0.0f;
m_time_previous_counter = 0.0f;
m_view_blocked_by_plunger = 0;
m_has_caught_nolok_bubblegum = false;
@ -380,7 +380,7 @@ void Kart::reset()
{
m_previous_xyz[i] = getXYZ();
}
time_previous_counter = 0.0f;
m_time_previous_counter = 0.0f;
// In case that the kart was in the air, in which case its
// linear damping is 0
@ -1300,15 +1300,15 @@ void Kart::update(float dt)
m_kart_animation->update(dt);
}
time_previous_counter += dt;
while (time_previous_counter > (1.0f/120.0f))
m_time_previous_counter += dt;
while (m_time_previous_counter > (1.0f/120.0f))
{
m_previous_xyz[0] = getXYZ();
for (int i=29;i>0;i--)
{
m_previous_xyz[i] = m_previous_xyz[i-1];
}
time_previous_counter -= (1.0f/120.0f);
m_time_previous_counter -= (1.0f/120.0f);
}
// Update the position and other data taken from the physics (or