Issue #9 should be fixed now

master
Joel Leclerc 2012-05-12 20:42:24 -06:00
parent ab1362e02c
commit 505e5cac32
3 changed files with 10 additions and 3 deletions

View File

@ -270,7 +270,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, v2u32 screensize,
{
m_sprinting_fov_state += incr;
}*/
if(player->sprinting_timer != -10 && player->sprinting_timer != -20)
if(player->sprinting_timer != -10 && player->sprinting_timer != -20 && player->sprinting_timer != -30)
{
m_sprinting_fov_state = 0.3-player->sprinting_timer;
}

View File

@ -2887,6 +2887,10 @@ void the_game(
{
player->sprinting_timer = 0.3;
}
if(player->sprinting_timer == -30)
{
player->sprinting_timer = -10;
}
if(player->sprinting_timer != -10)
{
if(player->sprinting_timer > 0.0)
@ -2909,6 +2913,10 @@ void the_game(
{
player->sprinting_timer = 0;
}
if(player->sprinting_timer == -30)
{
player->sprinting_timer = -20;
}
if(player->sprinting_timer != -20)
{
if(player->sprinting_timer < 0.3)

View File

@ -46,8 +46,7 @@ Player::Player(IGameDef *gamedef):
hp(PLAYER_MAX_HP),
hurt_tilt_timer(0),
hurt_tilt_timer_max(0),
// For now this hack will work
sprinting_timer(2.9999),
sprinting_timer(-30),
enable_sprinting_timer(0),
enable_flying_timer(0),
hunger(PLAYER_MAX_HUNGER),