Daemons and fuses now return void.
Functions for starting and stopping daemons and fuses now expect the type 'void (*func)()'. Only a few functions in XRogue needed to be modified to fit. Determining the type of the argument is left for a later date. Building with GCC5 should now produce less than 200 lines of warnings per game.
This commit is contained in:
parent
6dfde944f0
commit
0a354903e0
14 changed files with 91 additions and 96 deletions
|
|
@ -1504,7 +1504,7 @@ rs_write_daemons(FILE *savef, struct delayed_action *d_list, int count)
|
|||
func = 15;
|
||||
else if (d_list[i].d_func == unstink)
|
||||
func = 16;
|
||||
else if (d_list[i].d_func == (int (*)()) res_strength)
|
||||
else if (d_list[i].d_func == res_strength)
|
||||
func = 17;
|
||||
else if (d_list[i].d_func == undance)
|
||||
func = 18;
|
||||
|
|
@ -1644,7 +1644,7 @@ rs_read_daemons(int inf, struct delayed_action *d_list, int count)
|
|||
break;
|
||||
case 16: d_list[i].d_func = unstink;
|
||||
break;
|
||||
case 17: d_list[i].d_func = (int (*)()) res_strength;
|
||||
case 17: d_list[i].d_func = res_strength;
|
||||
break;
|
||||
case 18: d_list[i].d_func = undance;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue