diff --git a/src/game_over.c b/src/game_over.c index cecd1b2..1c4698c 100644 --- a/src/game_over.c +++ b/src/game_over.c @@ -12,8 +12,8 @@ static const char * title = "TITLE PENDING"; static const char * subtitle = "A game for the Cyberpunk Jam 2014"; -static const char * aWinnerIsYou = "You have completed the scenario!"; -static const char * thanks = "Thank you for playing."; +static const char * aWinnerIsYou = "You have completed the scenario!"; +static const char * thanks = "Thank you for playing."; static const char * goInfo = "Press enter to return to the main menu."; static bool enter; @@ -45,7 +45,7 @@ gsname_t goUpdate(){ return MENU; } - return GAME_OVER; + return GAME_OVER; } void goRender(int w, int h){ diff --git a/src/in_game.c b/src/in_game.c index 59d1bc0..5c2680e 100644 --- a/src/in_game.c +++ b/src/in_game.c @@ -141,14 +141,14 @@ gsname_t update(){ if(objs[i].x == iY && objs[i].y == iX){ player.x = objs[i].eX; player.y = objs[i].eY; - if(strcmp(objs[i].target, "END") != 0){ - loadMap(objs[i].target); - return IN_GAME; - }else{ - initObjects(); - loadMap("maps/start.map"); - return GAME_OVER; - } + if(strcmp(objs[i].target, "END") != 0){ + loadMap(objs[i].target); + return IN_GAME; + }else{ + initObjects(); + loadMap("maps/start.map"); + return GAME_OVER; + } } } } @@ -539,10 +539,10 @@ void initObjects(){ objs[i].id = 0; objs[i].dId = 0; for(j = 0; j < MAX_STR; j++){ - objs[i].name[j] = '\0'; - objs[i].target[j] = '\0'; - objs[i].dialog[j] = '\0'; - } + objs[i].name[j] = '\0'; + objs[i].target[j] = '\0'; + objs[i].dialog[j] = '\0'; + } objs[i].unlocked = 0; } }