From b842bd0095ef9baafa79d7ee91d1a71b2f7df423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Tue, 3 Mar 2026 09:20:50 +0100 Subject: [PATCH] Move global variables to main(). Should not make variables global unnecessarily. --- src/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index a4915b7..edb6d10 100644 --- a/src/main.c +++ b/src/main.c @@ -20,11 +20,6 @@ #include "event_manager.h" #include "ship.h" -int run; -int redraw; -int show_help; -int show_info; - #include #include #include @@ -50,6 +45,10 @@ const char *info_format = "velY: %f px/sec"; int main() { + int run; + int redraw; + int show_help; + int show_info; char title[32]; sprintf(title, "SpaceShipSim v%s", VERSION); puts(title);