diff --git a/src/defs.h b/src/defs.h index f836d9a..335cd3e 100644 --- a/src/defs.h +++ b/src/defs.h @@ -547,6 +547,7 @@ enum { // Status TS_STATUS_HEADER, + TS_STATUS_DIFFICULTY, TS_SHOTS_FIRED, TS_HITS_SCORED, TS_ACCURACY, diff --git a/src/intermission.cpp b/src/intermission.cpp index 8c60875..098bcaa 100644 --- a/src/intermission.cpp +++ b/src/intermission.cpp @@ -232,9 +232,34 @@ These are set only once. static void intermission_setStatusLines() { char string[50]; + char difficulty[50]; int timeTaken = game.timeTaken; int y; + switch (game.difficulty) + { + case DIFFICULTY_EASY: + strcpy(difficulty, "Easy"); + break; + case DIFFICULTY_NORMAL: + strcpy(difficulty, "Normal"); + break; + case DIFFICULTY_HARD: + strcpy(difficulty, "Hard"); + break; + case DIFFICULTY_NIGHTMARE: + strcpy(difficulty, "Nightmare!"); + break; + case DIFFICULTY_ORIGINAL: + strcpy(difficulty, "Classic"); + break; + default: + strcpy(difficulty, "???"); + } + + sprintf(string, "Difficulty : %s", difficulty); + gfx_createTextObject(TS_STATUS_DIFFICULTY, string, 0, 0, FONT_WHITE); + sprintf(string, "Shots Fired : %d", game.shots); gfx_createTextObject(TS_SHOTS_FIRED, string, 0, 0, FONT_WHITE);