Set char* parameters to const to prevent warnings
This commit is contained in:
2
jsound.h
2
jsound.h
@@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "SDL_mixer.h"
|
#include <SDL2/SDL_mixer.h>
|
||||||
|
|
||||||
typedef Mix_Chunk JS_Sound;
|
typedef Mix_Chunk JS_Sound;
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ void ModuleSequence::FadeOut() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModuleSequence::ShowText(int x, int y, int color, int speed, char * text1, char * text2, char * text3) {
|
void ModuleSequence::ShowText(int x, int y, int color, int speed, const char * text1, const char * text2, const char * text3) {
|
||||||
bool eixir = false;
|
bool eixir = false;
|
||||||
|
|
||||||
JG_SetUpdateTicks(10);
|
JG_SetUpdateTicks(10);
|
||||||
@@ -118,7 +118,7 @@ void ModuleSequence::ShowText(int x, int y, int color, int speed, char * text1,
|
|||||||
|
|
||||||
// mod 35
|
// mod 35
|
||||||
// A (65) = 23 -> char - 42
|
// A (65) = 23 -> char - 42
|
||||||
// Special chars: ( ) <20> ' - : ! .
|
// Special chars: ( ) <20> ' - : ! .
|
||||||
// [ \ ] ^ _ ` a b
|
// [ \ ] ^ _ ` a b
|
||||||
|
|
||||||
int tamany_text1 = strlen(text1);
|
int tamany_text1 = strlen(text1);
|
||||||
|
|||||||
Reference in New Issue
Block a user