From 9ac664dbabaf6fa7cf946108ca943b6a279a46bc Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 20 Mar 2013 13:34:53 -0700 Subject: [PATCH] include cstdio for uint8_t --- shared/src/SharedUtil.cpp | 1 - shared/src/SharedUtil.h | 1 + voxel/src/main.cpp | 6 +----- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/shared/src/SharedUtil.cpp b/shared/src/SharedUtil.cpp index e151ca9609..54b1c75e4f 100644 --- a/shared/src/SharedUtil.cpp +++ b/shared/src/SharedUtil.cpp @@ -24,7 +24,6 @@ float randFloat () { return (rand() % 10000)/10000.f; } - unsigned char randomColorValue(uint8_t miniumum) { return miniumum + (rand() % (255 - miniumum)); } diff --git a/shared/src/SharedUtil.h b/shared/src/SharedUtil.h index 352ff1d859..c7f8261070 100644 --- a/shared/src/SharedUtil.h +++ b/shared/src/SharedUtil.h @@ -10,6 +10,7 @@ #define __hifi__SharedUtil__ #include +#include #ifdef _WIN32 #include "Systime.h" diff --git a/voxel/src/main.cpp b/voxel/src/main.cpp index 9ed3d37a73..bb43dc80fd 100644 --- a/voxel/src/main.cpp +++ b/voxel/src/main.cpp @@ -27,10 +27,6 @@ const int VOXEL_LISTEN_PORT = 40106; -const int NUMBER_OF_VOXELS = 250000; - -const float MAX_UNIT_ANY_AXIS = 20.0f; - const int VERTICES_PER_VOXEL = 8; const int VERTEX_POINTS_PER_VOXEL = 3 * VERTICES_PER_VOXEL; const int COLOR_VALUES_PER_VOXEL = 3 * VERTICES_PER_VOXEL; @@ -46,7 +42,7 @@ char DOMAIN_HOSTNAME[] = "highfidelity.below92.com"; char DOMAIN_IP[100] = ""; // IP Address will be re-set by lookup on startup const int DOMAINSERVER_PORT = 40102; -const int MAX_VOXEL_TREE_DEPTH_LEVELS = 2; +const int MAX_VOXEL_TREE_DEPTH_LEVELS = 4; AgentList agentList(VOXEL_LISTEN_PORT); in_addr_t localAddress;