[patch] éviter de planter à cause d'option dark_channeltext

Crayona
Messages : 457
Inscription : 24 juin 2012, 18:53

[patch] éviter de planter à cause d'option dark_channeltext

Message par Crayona »

Il y a un oubli dans la définition de l'option dark_channeltext dans elconfig.c ligne 2419 qui fait planter le client lorsque le panneau de configuration est affiché. Le bug s'est manifesté au moment où j'ai essaié d'utiliser le client sous un système 64 bits.

Code : Tout sélectionner

diff --git a/elconfig.c b/elconfig.c
index e1e29fe..4910768 100644
--- a/elconfig.c
+++ b/elconfig.c
@@ -2401,10 +2401,10 @@ static void init_ELC_vars(void)
 	add_var(OPT_BOOL,"caps_filter","caps",&caps_filter,change_var,1,"Caps Filter","Toggle the caps filter",CHAT);
 #ifdef ENGLISH
 	add_var(OPT_BOOL,"show_timestamp","timestamp",&show_timestamp,change_var,0,"Show Time Stamps","Toggle time stamps for chat messages",CHAT);
-	add_var(OPT_MULTI_H,"dark_channeltext","dark_channeltext",&dark_channeltext,change_int,0,"Channel Text Color","Display the channel text in a darker color for better reading on bright maps ('Dark' may be unreadable in F1 screen)",CHAT, "Normal", "Medium", "Dark");
+	add_var(OPT_MULTI_H,"dark_channeltext","dark_channeltext",&dark_channeltext,change_int,0,"Channel Text Color","Display the channel text in a darker color for better reading on bright maps ('Dark' may be unreadable in F1 screen)",CHAT, "Normal", "Medium", "Dark", NULL);
 #else //ENGLISH
 	add_var(OPT_BOOL,"show_timestamp","timestamp",&show_timestamp,change_var,0,"Horodatage des messages","Voir les heures sur les canaux de discussions",CHAT);
-	add_var(OPT_MULTI_H,"dark_channeltext","dark_channeltext",&dark_channeltext,change_dark_channeltext,0,"Couleur texte console","Affiche le texte dans une couleur noire sur les canaux pour un meilleur affichage sur les cartes claires (peut-être difficilement visible en mode consolle F1)",CHAT, "Normal", "Moyen", "Noir");
+	add_var(OPT_MULTI_H,"dark_channeltext","dark_channeltext",&dark_channeltext,change_dark_channeltext,0,"Couleur texte console","Affiche le texte dans une couleur noire sur les canaux pour un meilleur affichage sur les cartes claires (peut-être difficilement visible en mode consolle F1)",CHAT, "Normal", "Moyen", "Noir", NULL);
 #endif //ENGLISH
 	// CHAT TAB
 
Le fichier du patch, si copier-coller ne fonctionne pas: le181-fix_opt_multi_crash.patch.url

Répondre