Move global variables to main().

Should not make variables global unnecessarily.
This commit is contained in:
2026-03-03 09:20:50 +01:00
parent bb28285794
commit b842bd0095

View File

@@ -20,11 +20,6 @@
#include "event_manager.h"
#include "ship.h"
int run;
int redraw;
int show_help;
int show_info;
#include <stdio.h>
#include <allegro5/allegro.h>
#include <allegro5/allegro_primitives.h>
@@ -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);