mirror of
https://github.com/zoriya/Gamacon.git
synced 2026-06-01 03:08:47 +00:00
premerge
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
#include "component.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
#define ROTATION_INFO 3
|
||||
|
||||
struct vertex
|
||||
{
|
||||
int x;
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user