Commit 29eb9eac authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Updates

parent 3818b23d
......@@ -384,7 +384,7 @@ ifeq ($(platform), qnx)
CFLAGS += -Wp,-MMD
CXXFLAGS += -Wp,-MMD
else
CFLAGS += -std=c89 -MMD
CFLAGS += -std=c99 -MMD
CXXFLAGS += -std=gnu++98 -MMD
endif
......
......@@ -359,15 +359,15 @@ int _make_sphere(
}
void make_sphere(float *data, float r, int detail) {
// detail, triangles, floats
// 0, 8, 192
// 1, 32, 768
// 2, 128, 3072
// 3, 512, 12288
// 4, 2048, 49152
// 5, 8192, 196608
// 6, 32768, 786432
// 7, 131072, 3145728
/* detail, triangles, floats */
/* 0, 8, 192 */
/* 1, 32, 768 */
/* 2, 128, 3072 */
/* 3, 512, 12288 */
/* 4, 2048, 49152 */
/* 5, 8192, 196608 */
/* 6, 32768, 786432 */
/* 7, 131072, 3145728 */
static int indices[8][3] = {
{4, 3, 0}, {1, 4, 0},
{3, 4, 5}, {4, 1, 5},
......
......@@ -80,21 +80,21 @@ const int blocks[256][6] = {
{13, 13, 13, 13, 13, 13}, /* 14 - chest */
{14, 14, 14, 14, 14, 14}, /* 15 - leaves */
{15, 15, 15, 15, 15, 15}, /* 16 - cloud */
{0, 0, 0, 0, 0, 0}, // 17
{0, 0, 0, 0, 0, 0}, // 18
{0, 0, 0, 0, 0, 0}, // 19
{0, 0, 0, 0, 0, 0}, // 20
{0, 0, 0, 0, 0, 0}, // 21
{0, 0, 0, 0, 0, 0}, // 22
{0, 0, 0, 0, 0, 0}, // 23
{0, 0, 0, 0, 0, 0}, // 24
{0, 0, 0, 0, 0, 0}, // 25
{0, 0, 0, 0, 0, 0}, // 26
{0, 0, 0, 0, 0, 0}, // 27
{0, 0, 0, 0, 0, 0}, // 28
{0, 0, 0, 0, 0, 0}, // 29
{0, 0, 0, 0, 0, 0}, // 30
{0, 0, 0, 0, 0, 0}, // 31
{0, 0, 0, 0, 0, 0}, /* 17 */
{0, 0, 0, 0, 0, 0}, /* 18 */
{0, 0, 0, 0, 0, 0}, /* 19 */
{0, 0, 0, 0, 0, 0}, /* 20 */
{0, 0, 0, 0, 0, 0}, /* 21 */
{0, 0, 0, 0, 0, 0}, /* 22 */
{0, 0, 0, 0, 0, 0}, /* 23 */
{0, 0, 0, 0, 0, 0}, /* 24 */
{0, 0, 0, 0, 0, 0}, /* 25 */
{0, 0, 0, 0, 0, 0}, /* 26 */
{0, 0, 0, 0, 0, 0}, /* 27 */
{0, 0, 0, 0, 0, 0}, /* 28 */
{0, 0, 0, 0, 0, 0}, /* 29 */
{0, 0, 0, 0, 0, 0}, /* 30 */
{0, 0, 0, 0, 0, 0}, /* 31 */
{176, 176, 176, 176, 176, 176}, // 32
{177, 177, 177, 177, 177, 177}, // 33
{178, 178, 178, 178, 178, 178}, // 34
......@@ -131,14 +131,14 @@ const int blocks[256][6] = {
const int plants[256] = {
/* w => tile */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0 - 16
48, // 17 - tall grass
49, // 18 - yellow flower
50, // 19 - red flower
51, // 20 - purple flower
52, // 21 - sun flower
53, // 22 - white flower
54, // 23 - blue flower
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0 - 16 */
48, /* 17 - tall grass */
49, /* 18 - yellow flower */
50, /* 19 - red flower */
51, /* 20 - purple flower */
52, /* 21 - sun flower */
53, /* 22 - white flower */
54, /* 23 - blue flower */
};
int is_plant(int w)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment