diff --git a/cgdoom/d_englsh.h b/cgdoom/d_englsh.h index e928284..1bfc0b4 100644 --- a/cgdoom/d_englsh.h +++ b/cgdoom/d_englsh.h @@ -73,7 +73,6 @@ #define GAMMALVL2 "Gamma correction level 2" #define GAMMALVL3 "Gamma correction level 3" #define GAMMALVL4 "Gamma correction level 4" -#define GAMMALV "Brightness: %d/4" #define EMPTYSTRING "empty slot" #define NOTIMP "not implemented in cgdoom yet!" diff --git a/cgdoom/m_menu.c b/cgdoom/m_menu.c index b4b5b2e..6b8ae51 100644 --- a/cgdoom/m_menu.c +++ b/cgdoom/m_menu.c @@ -96,14 +96,14 @@ void (*messageRoutine)(int response); #define SAVESTRINGSIZE 24 -/*char gammamsg[5][26] = +char gammamsg[5][26] = { GAMMALVL0, GAMMALVL1, GAMMALVL2, GAMMALVL3, GAMMALVL4 -};*/ +}; // we are going to be entering a savegame string int saveStringEnter; diff --git a/cgdoom/st_stuff.c b/cgdoom/st_stuff.c index 4110906..052a3ed 100644 --- a/cgdoom/st_stuff.c +++ b/cgdoom/st_stuff.c @@ -513,9 +513,8 @@ void CGCycleGamma() usegamma = (usegamma + 1) % 5; I_SetPalette(NULL); - static char message[32]; - sprintf(message, GAMMALV, usegamma); - plyr->message = message; + extern char gammamsg[5][26]; + plyr->message = gammamsg[usegamma]; } void CGProfilerResults()