From e0e2026448b62e00186689d51a4fd3da8c242a5a Mon Sep 17 00:00:00 2001 From: Charadon Date: Thu, 4 Aug 2022 12:23:06 -0400 Subject: Fixed issue for haiku where 2 BApplications instances would crash the game, and fixed install script so it works on Mac --- src/main.c | 2 +- src/pong.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 54f5b1b..6b07e4e 100644 --- a/src/main.c +++ b/src/main.c @@ -143,8 +143,8 @@ bool play_audio(int SoundEffect) { int main(int argc, char *argv[]) { /* Raylib Init */ - InitWindow(1280, 720, "Pong"); SDL_Init(SDL_INIT_AUDIO); + InitWindow(1280, 720, "Pong"); SDL_AtomicSet(&Ticks, 0); SDL_Thread *InternalClock = SDL_CreateThread(internal_clock, "Internal Clock", NULL); SetTargetFPS(60); diff --git a/src/pong.h b/src/pong.h index dd469f5..d0099d4 100644 --- a/src/pong.h +++ b/src/pong.h @@ -15,6 +15,7 @@ #include #include #include +#include #include "sounds.h" -- cgit 1.4.1-2-gfad0