From fc3570d00083345ac376f67e0558fc548e2e2f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Fri, 27 Jul 2007 17:24:22 +0000 Subject: [PATCH] Fixed a bunch of warnings. svn-id: r28241 --- engines/drascula/drascula.cpp | 14 +++++++------- engines/drascula/drascula.h | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index c57419270b1..260745f7374 100644 --- a/engines/drascula/drascula.cpp +++ b/engines/drascula/drascula.cpp @@ -239,7 +239,7 @@ void DrasculaEngine::carga_info() { hay_que_load = 0; } -void DrasculaEngine::lee_dibujos(char *NamePcc) { +void DrasculaEngine::lee_dibujos(const char *NamePcc) { unsigned int con, x = 0; unsigned int fExit = 0; unsigned char ch,rep; @@ -2080,7 +2080,7 @@ char DrasculaEngine::LimitaVGA(char valor) { return (valor & 0x3F) * (valor > 0); } -void DrasculaEngine::centra_texto(char mensaje[], int x_texto, int y_texto) { +void DrasculaEngine::centra_texto(const char *mensaje, int x_texto, int y_texto) { char bb[190], m2[190], m1[190] ,mb[10][40]; char m3[190]; int h, fil, x_texto3, x_texto2, x_texto1, conta_f = 0, ya = 0; @@ -2711,7 +2711,7 @@ bucless: VUELCA_PANTALLA(0, 0, 0, 0, 320, 200, dir_zona_pantalla); } -void DrasculaEngine::habla_tabernero(char dicho[], char filename[]) { +void DrasculaEngine::habla_tabernero(const char *dicho, const char *filename) { int tiempou; long tiempol; @@ -2887,7 +2887,7 @@ bucless: VUELCA_PANTALLA(0, 0, 0, 0, 320, 200, dir_zona_pantalla); } -void DrasculaEngine::hablar(char dicho[], char filename[]) { +void DrasculaEngine::hablar(const char *dicho, const char *filename) { int tiempou; long tiempol; @@ -4196,7 +4196,7 @@ void DrasculaEngine::pantalla_63(int fl) { hay_respuesta = 0; } -void DrasculaEngine::conversa(char nom_fich[]) { +void DrasculaEngine::conversa(const char *nom_fich) { int juego1 = 1, juego2 = 1, juego3 = 1, juego4 = 1; char frase1[78]; char frase2[78]; @@ -4619,7 +4619,7 @@ void DrasculaEngine::responde(int funcion) { habla_borracho(TEXTB3, "B3.als"); } -void DrasculaEngine::habla_pianista(char dicho[], char filename[]) { +void DrasculaEngine::habla_pianista(const char *dicho, const char *filename) { int tiempou; long tiempol; int x_habla[4] = { 97, 145, 193, 241}; @@ -4684,7 +4684,7 @@ bucless: VUELCA_PANTALLA(0, 0, 0, 0, 320, 200, dir_zona_pantalla); } -void DrasculaEngine::habla_borracho(char dicho[], char filename[]) { +void DrasculaEngine::habla_borracho(const char *dicho, const char *filename) { int tiempou; long tiempol; diff --git a/engines/drascula/drascula.h b/engines/drascula/drascula.h index 889fc3ffd04..cb7b51bf948 100644 --- a/engines/drascula/drascula.h +++ b/engines/drascula/drascula.h @@ -351,7 +351,7 @@ public: void carga_info(); void salir_al_dos(int r); - void lee_dibujos(char *); + void lee_dibujos(const char *); void descomprime_dibujo(char *dir_escritura, int plt); typedef unsigned char DacPalette256[256][4]; @@ -498,7 +498,7 @@ public: void FundeDelNegro(int VelocidadDeFundido); char LimitaVGA(char valor); void color_abc(int cl); - void centra_texto(char[],int,int); + void centra_texto(const char *,int,int); void comienza_sound(char[]); void anima(char animacion[], int FPS); void fin_sound_corte(); @@ -513,11 +513,11 @@ public: void habla_dr_izq(char dicho[], char filename[]); void habla_solo(char[], char[]); void habla_igor_frente(char[], char[]); - void habla_tabernero(char dicho[], char filename[]); + void habla_tabernero(const char *dicho, const char *filename); void hipo(int); void fin_sound(); void habla_bj(char[], char[]); - void hablar(char[], char[]); + void hablar(const char *, const char *); void playmusic(int p); void stopmusic(); int music_status(); @@ -598,13 +598,13 @@ public: void pantalla_0(); void pantalla_62(int); void pantalla_63(int); - void conversa(char []); + void conversa(const char *); void animacion_3(); void animacion_4(); void print_abc_opc(char[], int, int, int); void responde(int); - void habla_borracho(char dicho[], char filename[]); - void habla_pianista(char dicho[], char filename[]); + void habla_borracho(const char *dicho, const char *filename); + void habla_pianista(const char *dicho, const char *filename); void MusicFadeout(); void ctvd_end();