mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Properly and efficiently use split utility headers
This commit is contained in:
parent
1bc37d576c
commit
d0ea6f9920
73 changed files with 130 additions and 159 deletions
|
@ -18,7 +18,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
*/
|
||||
|
||||
#include "server.h"
|
||||
#include "utility.h"
|
||||
#include <iostream>
|
||||
#include <queue>
|
||||
#include "clientserver.h"
|
||||
|
@ -49,10 +48,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "sha1.h"
|
||||
#include "base64.h"
|
||||
#include "tool.h"
|
||||
#include "util/string.h"
|
||||
#include "sound.h" // dummySoundManager
|
||||
#include "event_manager.h"
|
||||
#include "hex.h"
|
||||
#include "util/string.h"
|
||||
#include "util/pointedthing.h"
|
||||
|
||||
#define PP(x) "("<<(x).X<<","<<(x).Y<<","<<(x).Z<<")"
|
||||
|
||||
|
@ -676,7 +676,7 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime,
|
|||
FOV setting. The default of 72 degrees is fine.
|
||||
*/
|
||||
|
||||
float camera_fov = (72.0*PI/180) * 4./3.;
|
||||
float camera_fov = (72.0*M_PI/180) * 4./3.;
|
||||
if(isBlockInSight(p, camera_pos, camera_dir, camera_fov, 10000*BS) == false)
|
||||
{
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue