@@ -68,7 +68,7 @@ void Hand_Draw(int projUniform, C3D_Mtx* projection, ItemStack stack, Player* pl
68
68
69
69
if (i == Direction_East ||
70
70
i == Direction_West ) { // eines der dümmsten Dinge, die ich jemals in meinem Leben getan habe
71
- const uvRotationTable [2 ][2 ][2 ][2 ] = {
71
+ const int16_t uvRotationTable [2 ][2 ][2 ][2 ] = {
72
72
{{{0 , 1 }, {0 , 0 }}, {{1 , 1 }, {1 , 0 }}}, {{{1 , 0 }, {1 , 1 }}, {{0 , 0 }, {0 , 1 }}},
73
73
};
74
74
for (int j = 0 ; j < 6 ; j ++ ) {
@@ -82,7 +82,7 @@ void Hand_Draw(int projUniform, C3D_Mtx* projection, ItemStack stack, Player* pl
82
82
for (int j = 0 ; j < 6 ; j ++ ) {
83
83
int idx = i * 6 + j ;
84
84
#define toTexCoord (x , tw ) (int16_t)(((float)(x) / (float)(tw)) * (float)(1 << 15))
85
- const uvLookUp [6 ][4 ] = {
85
+ const int16_t uvLookUp [6 ][4 ] = {
86
86
{toTexCoord (48 , 64 ), toTexCoord (52 , 64 ), toTexCoord (20 , 64 ), toTexCoord (32 , 64 )}, // west = inside
87
87
{toTexCoord (40 , 64 ), toTexCoord (44 , 64 ), toTexCoord (20 , 64 ), toTexCoord (32 , 64 )}, // east = outside
88
88
{toTexCoord (52 , 64 ), toTexCoord (56 , 64 ), toTexCoord (20 , 64 ), toTexCoord (32 , 64 )}, // bottom = back
0 commit comments