mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-05 00:36:57 +00:00
pedantic warning fixes
svn-id: r7794
This commit is contained in:
parent
c24df81f78
commit
11d29b71ab
@ -347,7 +347,7 @@ void dump_bitmap(const char *filename, byte *offs, int w, int h, int flags, cons
|
||||
}
|
||||
}
|
||||
|
||||
dump_bmp(filename, w, h, b, (uint32 *)palette);
|
||||
dump_bmp(filename, w, h, b, (const uint32 *)palette);
|
||||
free(b);
|
||||
}
|
||||
|
||||
|
@ -1731,7 +1731,7 @@ void SimonState::f10_key() {
|
||||
|
||||
x_ = (ha->width >> 1) - 4 + ha->x - (_x_scroll << 3);
|
||||
|
||||
if (x_ < 0 || x_ >= 0x137)
|
||||
if (x_ >= 0x137)
|
||||
continue;
|
||||
|
||||
dst = dx_lock_attached();
|
||||
@ -2042,7 +2042,7 @@ void SimonState::o_print_str() {
|
||||
if (speech_id != 0 && !_subtitles) {
|
||||
talk_with_speech(speech_id, num_1);
|
||||
} else if (string_ptr != NULL) {
|
||||
talk_with_text(num_1, num_2, (char *)string_ptr, tv->a, tv->b, tv->c);
|
||||
talk_with_text(num_1, num_2, (const char *)string_ptr, tv->a, tv->b, tv->c);
|
||||
}
|
||||
break;
|
||||
|
||||
@ -2050,7 +2050,7 @@ void SimonState::o_print_str() {
|
||||
case GAME_SIMON1DOS:
|
||||
case GAME_SIMON1AMIGA:
|
||||
case GAME_SIMON2DOS:
|
||||
talk_with_text(num_1, num_2, (char *)string_ptr, tv->a, tv->b, tv->c);
|
||||
talk_with_text(num_1, num_2, (const char *)string_ptr, tv->a, tv->b, tv->c);
|
||||
break;
|
||||
|
||||
case GAME_SIMON2TALKIE:
|
||||
@ -2065,7 +2065,7 @@ void SimonState::o_print_str() {
|
||||
if (speech_id == 0)
|
||||
o_kill_thread_simon2(2, num_1 + 2);
|
||||
|
||||
talk_with_text(num_1, num_2, (char *)string_ptr, tv->a, tv->b, tv->c);
|
||||
talk_with_text(num_1, num_2, (const char *)string_ptr, tv->a, tv->b, tv->c);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -5076,7 +5076,7 @@ void SimonState::delay(uint amount) {
|
||||
} while (cur < start + amount);
|
||||
}
|
||||
|
||||
bool SimonState::save_game(uint slot, const char *caption) {
|
||||
bool SimonState::save_game(uint slot, char *caption) {
|
||||
File f;
|
||||
uint item_index, num_item, i, j;
|
||||
TimeEvent *te;
|
||||
@ -5093,7 +5093,7 @@ bool SimonState::save_game(uint slot, const char *caption) {
|
||||
return false;
|
||||
}
|
||||
|
||||
f.write((char*)caption, 0x12);
|
||||
f.write(caption, 0x12);
|
||||
|
||||
f.writeUint32BE(_itemarray_inited - 1);
|
||||
f.writeUint32BE(0xFFFFFFFF);
|
||||
|
@ -759,7 +759,7 @@ public:
|
||||
|
||||
Item *getNextItemPtrStrange();
|
||||
|
||||
bool save_game(uint slot, const char *caption);
|
||||
bool save_game(uint slot, char *caption);
|
||||
bool load_game(uint slot);
|
||||
|
||||
void showmessage_helper_2();
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "simon/vga.h"
|
||||
|
||||
typedef void (SimonState::*VgaOpcodeProc) ();
|
||||
static const uint16 vc_get_out_of_code = 0;
|
||||
static uint16 vc_get_out_of_code = 0;
|
||||
|
||||
// Opcode tables
|
||||
static const VgaOpcodeProc vga_opcode_table[] = {
|
||||
@ -113,7 +113,7 @@ void SimonState::run_vga_script() {
|
||||
uint opcode;
|
||||
|
||||
if (_continous_vgascript) {
|
||||
if ((void *)_vc_ptr != (void *)&vc_get_out_of_code) {
|
||||
if (_vc_ptr != (byte *)&vc_get_out_of_code) {
|
||||
fprintf(_dump_file, "%.5d %.5X: %5d %4d ", _vga_tick_counter, _vc_ptr - _cur_vga_file_1, _vga_cur_sprite_id, _vga_cur_file_id);
|
||||
dump_video_script(_vc_ptr, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user