improved formatting

This commit is contained in:
Luka Jankovic 2025-09-26 20:33:55 +02:00
parent 737ba58860
commit ccdd081d36
12 changed files with 46 additions and 37 deletions

View file

@ -19,7 +19,7 @@
#include "kubo_window.h"
#include "raylib.h"
Camera2D camera = {0};
Camera2D camera = { 0 };
bool kubo_mouse_snap = false;
static void window_render(struct kubo_context *context, Vector2 mouse_pos);
@ -154,7 +154,8 @@ static void new_wall_end(struct kubo_context *context) {
static Vector2 mouse_grid_snap(Vector2 mouse_pos) {
Vector2 snap_pos = {
.x = round(mouse_pos.x / KUBO_GRID_SIZE) * KUBO_GRID_SIZE,
.y = round(mouse_pos.y / KUBO_GRID_SIZE) * KUBO_GRID_SIZE};
.y = round(mouse_pos.y / KUBO_GRID_SIZE) * KUBO_GRID_SIZE
};
return snap_pos;
}