Fix warnings
This commit is contained in:
parent
b9aafa37d4
commit
13d2192496
|
@ -151,7 +151,6 @@ void ram(void){
|
||||||
|
|
||||||
static bool screen_intro(void) {
|
static bool screen_intro(void) {
|
||||||
char key=0;
|
char key=0;
|
||||||
bool step = false;
|
|
||||||
while(key==0) {
|
while(key==0) {
|
||||||
getInputWaitRelease();
|
getInputWaitRelease();
|
||||||
lcdFill(0);
|
lcdFill(0);
|
||||||
|
@ -177,7 +176,6 @@ static bool screen_intro(void) {
|
||||||
|
|
||||||
static void draw_splash(void){
|
static void draw_splash(void){
|
||||||
char key=0;
|
char key=0;
|
||||||
bool step = false;
|
|
||||||
while(key==0) {
|
while(key==0) {
|
||||||
lcdFill(0);
|
lcdFill(0);
|
||||||
if (highscore_set(game.score, GLOBAL(nickname))){
|
if (highscore_set(game.score, GLOBAL(nickname))){
|
||||||
|
@ -190,7 +188,7 @@ static void draw_splash(void){
|
||||||
lcdDisplay();
|
lcdDisplay();
|
||||||
key=getInputWaitTimeout(1000);
|
key=getInputWaitTimeout(1000);
|
||||||
}
|
}
|
||||||
return !(key==BTN_LEFT);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool highscore_set(uint32_t score, char nick[]) {
|
static bool highscore_set(uint32_t score, char nick[]) {
|
||||||
|
@ -374,8 +372,6 @@ static void draw_score(void){
|
||||||
static void detect_collitions(void){
|
static void detect_collitions(void){
|
||||||
for(int i = 0;i<MAX_ASTEROIDS;i++){
|
for(int i = 0;i<MAX_ASTEROIDS;i++){
|
||||||
if(game.asteroids_t[i] > 0){
|
if(game.asteroids_t[i] > 0){
|
||||||
int as_x = game.asteroids_x[i];
|
|
||||||
int as_y = game.asteroids_y[i];
|
|
||||||
int as_h = 0;
|
int as_h = 0;
|
||||||
int as_w = 0;
|
int as_w = 0;
|
||||||
if(game.asteroids_t[i] == 1){
|
if(game.asteroids_t[i] == 1){
|
||||||
|
|
Loading…
Reference in New Issue