Fixed some weird compilation issues

This commit is contained in:
Adam Greenwood-Byrne 2021-02-09 16:40:33 +00:00
parent 7fa637650d
commit dba37c8522
2 changed files with 3 additions and 4 deletions

View file

@ -89,7 +89,7 @@ void initBricks()
int brickwidth = 32;
int brickheight = 8;
int brickspacer = 20;
int brickcols[5] = { 0x11, 0x22, 0xEE, 0x44, 0x66 };
static int brickcols[] = { 0x11, 0x22, 0xEE, 0x44, 0x66 };
int ybrick = MARGIN + brickheight;

View file

@ -182,11 +182,10 @@ enum {
OBJ_BALL = 3
};
//#define OBJS_ADDRESS 0x02200000 // Somewhere safe to store a lot of data
#define OBJS_ADDRESS 0x02200000 // Somewhere safe to store a lot of data
unsigned int numobjs = 0;
struct Object objects[(ROWS * COLS) + (2 * NUM_LIVES)];
//struct Object *objects = (struct Object *)OBJS_ADDRESS;
struct Object *objects = (struct Object *)OBJS_ADDRESS;
struct Object *ball;
struct Object *paddle;
int paddlewidth = 80;