diff options
author | 2025-05-21 23:36:42 +0200 | |
---|---|---|
committer | 2025-05-21 23:36:42 +0200 | |
commit | 0e2ae89e187e868803514b4b75df10f5b147831f (patch) | |
tree | fea5e29b911892c6b9a692e23366299893d25afd | |
parent | 7288bdd42360109f26a684431fa286ea265d07a4 (diff) | |
download | tris-0e2ae89e187e868803514b4b75df10f5b147831f.tar.gz tris-0e2ae89e187e868803514b4b75df10f5b147831f.zip |
Move a declaration
-rw-r--r-- | src/main/game/game.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/game/game.c b/src/main/game/game.c index 7579c50..19a93a0 100644 --- a/src/main/game/game.c +++ b/src/main/game/game.c @@ -25,6 +25,15 @@ #include "cell.h" #include "../engine/ui/ui.h" +static Log *log = NULL; + +static void +init_log(void) +{ + if (log != NULL) return; + log = log_create("Game"); +} + float xmin, xmax, ymin, ymax; float box_size; int field_matrix[3][3]; @@ -43,15 +52,6 @@ int moves = 0; static void game_draw_field(TrisGame *game, float box_size, float x, float y); -static Log *log = NULL; - -static void -init_log(void) -{ - if (log != NULL) return; - log = log_create("Game"); -} - static void draw_sign(float x, float y) { |