mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-09 19:45:21 +01:00
General code refactoring/improvements in server, treegen and connection
This commit is contained in:
@@ -29,7 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
|
||||
// myrand
|
||||
|
||||
PcgRandom g_pcgrand;
|
||||
static PcgRandom g_pcgrand;
|
||||
|
||||
u32 myrand()
|
||||
{
|
||||
@@ -187,7 +187,7 @@ s16 adjustDist(s16 dist, float zoom_fov)
|
||||
return std::round(adjustDist((float)dist, zoom_fov));
|
||||
}
|
||||
|
||||
void setPitchYawRollRad(core::matrix4 &m, const v3f &rot)
|
||||
void setPitchYawRollRad(core::matrix4 &m, v3f rot)
|
||||
{
|
||||
f64 a1 = rot.Z, a2 = rot.X, a3 = rot.Y;
|
||||
f64 c1 = cos(a1), s1 = sin(a1);
|
||||
|
||||
Reference in New Issue
Block a user