From 8c82faa994fb0d5245780cc903c578b749f72fa2 Mon Sep 17 00:00:00 2001 From: nebiun Date: Wed, 21 Feb 2024 22:52:54 +0100 Subject: [PATCH] Code cleaning --- Makefile | 2 - source/LED_Handled.h | 1 + source/game/Basketball.c | 23 +--------- source/platform/ReadMe.txt | 88 -------------------------------------- source/platform/TODO.TXT | 4 -- 5 files changed, 3 insertions(+), 115 deletions(-) delete mode 100644 source/platform/ReadMe.txt delete mode 100644 source/platform/TODO.TXT diff --git a/Makefile b/Makefile index 921ff89..1d88702 100644 --- a/Makefile +++ b/Makefile @@ -82,10 +82,8 @@ export HFILES := $(addsuffix .h,$(subst .,_,$(BINFILES))) #--------------------------------------------------------------------------------- # build a list of include paths #--------------------------------------------------------------------------------- -INCLUDEDIR := $(foreach dir,$(LIBDIRS),$(dir $(wildcard $(dir)/include/*/))) export INCLUDE := $(foreach dir,$(INCLUDES), -iquote $(CURDIR)/$(dir)) \ $(foreach dir,$(LIBDIRS),-I$(dir)/include) \ - $(foreach dir,$(INCLUDEDIR),-I$(dir)) \ -I$(CURDIR)/include \ -I$(CURDIR)/$(BUILD) \ -I$(LIBOGC_INC) diff --git a/source/LED_Handled.h b/source/LED_Handled.h index 8ec0834..f3c1d22 100644 --- a/source/LED_Handled.h +++ b/source/LED_Handled.h @@ -23,6 +23,7 @@ #ifndef _LED_Handled_h_ #define _LED_Handled_h_ #include +#include #include #include #include diff --git a/source/game/Basketball.c b/source/game/Basketball.c index 3f9cf02..1796eaf 100644 --- a/source/game/Basketball.c +++ b/source/game/Basketball.c @@ -131,16 +131,6 @@ static PLAYER defense[NUM_DEFENSEPLAYERS]; p.nColumn++; \ } -static BOOL ISBALL(int x, int y) -{ - if ((ball.nColumn == x) - && (ball.nRow == y) - && (ball.nBright)){ - return TRUE; - } - return FALSE; -} - static BOOL ISPLAYER(int x, int y) { if ((player.nColumn == x) @@ -174,17 +164,6 @@ static BOOL ISOCCUPIED(int x, int y) return FALSE; } -static int GETPLAYERAT(int x, int y){ - for (int i=0; i