Set char* parameters to const to prevent warnings

This commit is contained in:
2021-05-08 18:39:37 +02:00
parent 826bdda3c6
commit aca0f646b3
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
JG_SetUpdateTicks(10);
@@ -118,7 +118,7 @@ void ModuleSequence::ShowText(int x, int y, int color, int speed, char * text1,
// mod 35
// A (65) = 23 -> char - 42
// Special chars: ( ) <20> ' - : ! .
// Special chars: ( ) <20> ' - : ! .
// [ \ ] ^ _ ` a b
int tamany_text1 = strlen(text1);