comparison arogue7/state.c @ 228:b67b99f6c92b

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.
author John "Elwin" Edwards
date Sat, 05 Mar 2016 20:49:37 -0500
parents f9ef86cf22b2
children b49d8b963df3
comparison
equal deleted inserted replaced
227:696277507a2e 228:b67b99f6c92b
1502 func = 14; 1502 func = 14;
1503 else if (d_list[i].d_func == cure_disease) 1503 else if (d_list[i].d_func == cure_disease)
1504 func = 15; 1504 func = 15;
1505 else if (d_list[i].d_func == unstink) 1505 else if (d_list[i].d_func == unstink)
1506 func = 16; 1506 func = 16;
1507 else if (d_list[i].d_func == (int (*)()) res_strength) 1507 else if (d_list[i].d_func == res_strength)
1508 func = 17; 1508 func = 17;
1509 else if (d_list[i].d_func == undance) 1509 else if (d_list[i].d_func == undance)
1510 func = 18; 1510 func = 18;
1511 else if (d_list[i].d_func == suffocate) 1511 else if (d_list[i].d_func == suffocate)
1512 func = 19; 1512 func = 19;
1642 break; 1642 break;
1643 case 15: d_list[i].d_func = cure_disease; 1643 case 15: d_list[i].d_func = cure_disease;
1644 break; 1644 break;
1645 case 16: d_list[i].d_func = unstink; 1645 case 16: d_list[i].d_func = unstink;
1646 break; 1646 break;
1647 case 17: d_list[i].d_func = (int (*)()) res_strength; 1647 case 17: d_list[i].d_func = res_strength;
1648 break; 1648 break;
1649 case 18: d_list[i].d_func = undance; 1649 case 18: d_list[i].d_func = undance;
1650 break; 1650 break;
1651 case 19: d_list[i].d_func = suffocate; 1651 case 19: d_list[i].d_func = suffocate;
1652 break; 1652 break;