This commit is contained in:
Clément Le Bihan
2020-03-12 19:46:08 +01:00
parent a42ccbad31
commit 469981cbae
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -10,6 +10,8 @@
#include "component.h"
#include <stdbool.h>
#define ROTATION_INFO 3
struct vertex
{
int x;
+1 -1
View File
@@ -27,7 +27,7 @@ sfVector2f sfvector2f(gc_vector2 vector)
static void tile_rotate(struct tile *tile, int **vertex_order)
{
for (int j = 0; j < (tile->data & 3); j++) {
for (int j = 0; j < (tile->data & ROTATION_INFO); j++) {
int tmp = vertex_order[0];
for (int i = 0; i < 3; i++)
vertex_order[i] = vertex_order[i + 1];