removing a few gcc warnings
This commit is contained in:
@@ -94,7 +94,6 @@ item_record_type get_armor(short loot)
|
|||||||
|
|
||||||
if (loot == 0)
|
if (loot == 0)
|
||||||
return return_dummy_item();
|
return return_dummy_item();
|
||||||
r1 = get_ran(1,(loot - 1) * 5 + 124,142);
|
|
||||||
|
|
||||||
armor = pull_item_of_type(loot,loot_min[loot],loot_max[loot],13,-1,-1);
|
armor = pull_item_of_type(loot,loot_min[loot],loot_max[loot],13,-1,-1);
|
||||||
|
|
||||||
|
@@ -133,7 +133,7 @@ short cd_create_custom_pic_dialog(HWND parent, HBITMAP picture)
|
|||||||
short i,j,free_slot = -1,free_item = -1;
|
short i,j,free_slot = -1,free_item = -1;
|
||||||
|
|
||||||
short cur_item = 1, but_items;
|
short cur_item = 1, but_items;
|
||||||
RECT pic_rect = {0,0,0,0}, c_rect;
|
RECT c_rect;
|
||||||
|
|
||||||
if (parent != NULL) {
|
if (parent != NULL) {
|
||||||
if (IsWindowEnabled(parent) == 0)
|
if (IsWindowEnabled(parent) == 0)
|
||||||
@@ -149,9 +149,6 @@ short cd_create_custom_pic_dialog(HWND parent, HBITMAP picture)
|
|||||||
if(bitmap_info.bmHeight > c_rect.bottom)
|
if(bitmap_info.bmHeight > c_rect.bottom)
|
||||||
bitmap_info.bmHeight = c_rect.bottom - 60;
|
bitmap_info.bmHeight = c_rect.bottom - 60;
|
||||||
|
|
||||||
pic_rect.right = bitmap_info.bmWidth;
|
|
||||||
pic_rect.bottom = bitmap_info.bmHeight;
|
|
||||||
|
|
||||||
store_dlog_num = 905;
|
store_dlog_num = 905;
|
||||||
|
|
||||||
for (i = 0; i < ND; i++) {
|
for (i = 0; i < ND; i++) {
|
||||||
@@ -489,7 +486,7 @@ short cd_create_dialog(short dlog_num, HWND parent)
|
|||||||
if (dlgs[free_slot] == NULL)
|
if (dlgs[free_slot] == NULL)
|
||||||
{
|
{
|
||||||
play_sound(3);
|
play_sound(3);
|
||||||
DebugQuit("Couldn't create Dialog Box");
|
DebugQuit((char *)"Couldn't create Dialog Box");
|
||||||
return -3;
|
return -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user