mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-12 01:08:16 +03:00
Fix compiler warnings
This commit is contained in:
+1
-1
@@ -124,7 +124,7 @@ public:
|
||||
void box_fill(int dest, int sx, int sy, int ex, int ey, uint8 color);
|
||||
void box_line(int dest, int sx, int sy, int ex, int ey, uint8 color);
|
||||
|
||||
void draw_text(char string[]);
|
||||
void draw_text(const char* string);
|
||||
|
||||
void clear_text_window(int index, bool erase);
|
||||
bool return_text_line(int index);
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
static bool antialias = false;
|
||||
|
||||
void AGS::draw_text(char string[])
|
||||
void AGS::draw_text(const char* string)
|
||||
{
|
||||
int p = 0;
|
||||
int screen, dest_x, dest_y, font_size;
|
||||
|
||||
@@ -361,7 +361,7 @@ void NACT::cmd_open_menu()
|
||||
if(terminate) {
|
||||
return;
|
||||
}
|
||||
if(val = get_key()) {
|
||||
if((val = get_key())) {
|
||||
SDL_Delay(100);
|
||||
break;
|
||||
}
|
||||
@@ -565,7 +565,7 @@ top2:
|
||||
if(terminate) {
|
||||
return;
|
||||
}
|
||||
if(val = get_key()) {
|
||||
if((val = get_key())) {
|
||||
SDL_Delay(100);
|
||||
break;
|
||||
}
|
||||
@@ -753,7 +753,7 @@ top2:
|
||||
if(terminate) {
|
||||
return;
|
||||
}
|
||||
if(val = get_key()) {
|
||||
if((val = get_key())) {
|
||||
SDL_Delay(100);
|
||||
break;
|
||||
}
|
||||
@@ -1435,7 +1435,7 @@ void NACT::cmd_z()
|
||||
switch (crc32) {
|
||||
case CRC32_INTRUDER:
|
||||
if(cmd == 1 && 1 <= param && param <= 4) {
|
||||
char* buf[4] = {"<", "∧", ">", "∨"};
|
||||
const char* buf[4] = {"<", "∧", ">", "∨"};
|
||||
|
||||
// 矢印を消去する
|
||||
if(map_page) {
|
||||
|
||||
@@ -391,7 +391,7 @@ void NACT::cmd_open_menu()
|
||||
if(terminate) {
|
||||
return;
|
||||
}
|
||||
if(val = get_key()) {
|
||||
if((val = get_key())) {
|
||||
SDL_Delay(100);
|
||||
break;
|
||||
}
|
||||
@@ -560,7 +560,7 @@ void NACT::cmd_open_verb()
|
||||
if(terminate) {
|
||||
return;
|
||||
}
|
||||
if(val = get_key()) {
|
||||
if((val = get_key())) {
|
||||
SDL_Delay(100);
|
||||
break;
|
||||
}
|
||||
@@ -704,7 +704,7 @@ void NACT::cmd_open_obj(int verb)
|
||||
if(terminate) {
|
||||
return;
|
||||
}
|
||||
if(val = get_key()) {
|
||||
if((val = get_key())) {
|
||||
SDL_Delay(100);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ int NACT::menu_select(int num_items)
|
||||
int dy = my - current_my;
|
||||
if (dx*dx + dy*dy > 10)
|
||||
break;
|
||||
if(val = get_key()) {
|
||||
if((val = get_key())) {
|
||||
SDL_Delay(100);
|
||||
break;
|
||||
}
|
||||
@@ -703,7 +703,7 @@ void NACT::cmd_k()
|
||||
if(terminate) {
|
||||
return;
|
||||
}
|
||||
if(val = get_key()) {
|
||||
if((val = get_key())) {
|
||||
break;
|
||||
}
|
||||
if(1 <= cmd && cmd <= 3) {
|
||||
@@ -1448,7 +1448,7 @@ void NACT::cmd_y()
|
||||
get_cursor(&x, &y);
|
||||
M_X = (x < 0) ? x : (x > 639) ? 639 : x;
|
||||
M_Y = (y < 0) ? 0 : (y > 479) ? 479 : y;
|
||||
if(RND = get_key()) {
|
||||
if((RND = get_key())) {
|
||||
// キー入力があった場合は、離すまで待機
|
||||
for(;;) {
|
||||
if(terminate) {
|
||||
|
||||
Reference in New Issue
Block a user