Send player FOV across the network as floatig point.

This commit is contained in:
nashmuhandes 2017-08-31 08:20:25 +08:00 committed by Christoph Oelckers
commit c885b6aa35
4 changed files with 10 additions and 10 deletions

View file

@ -614,7 +614,7 @@ void player_t::SetFOV(float fov)
{
Net_WriteByte(DEM_MYFOV);
}
Net_WriteByte((uint8_t)clamp<float>(fov, 5.f, 179.f));
Net_WriteFloat(clamp<float>(fov, 5.f, 179.f));
}
}