Remove internal server cuz we have it in the networking branch.
Minor refactoring (changed all Chunk* world or Chunk world[] to World world)
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
#define TPS 30.0
|
||||
#define TPS_DIV 1.0 / TPS
|
||||
//Rendering
|
||||
#define RENDER_DISTANCE 16
|
||||
#define RENDER_DISTANCE 128
|
||||
#define RENDER_DISTANCE_SQUARED RENDER_DISTANCE*RENDER_DISTANCE
|
||||
|
||||
//Game stuff
|
||||
@@ -179,7 +179,7 @@ struct Chunk {
|
||||
uint16_t opaqueMask[CHUNK_DATA_SIZE/16];
|
||||
uint16_t airMask[CHUNK_DATA_SIZE/16];
|
||||
uint8_t highestBlock[CHUNK_SIZE*CHUNK_SIZE];
|
||||
|
||||
uint8_t lights[CHUNK_DATA_SIZE];
|
||||
};
|
||||
#ifndef SERVER
|
||||
struct ChunkRenderData {
|
||||
@@ -306,4 +306,8 @@ struct Particle {
|
||||
Texture2D texture;
|
||||
int lifetime;
|
||||
int data[8];
|
||||
};
|
||||
};
|
||||
struct World
|
||||
{
|
||||
Chunk chunks[MAX_WORLD_AREA];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user