(u_char, u_short, u_int): BSDisms. Figuring out whether sys/types.h
defines them would be possible, but isn't worth the trouble. Replace by unabbreviated types.
This commit is contained in:
parent
21bf6b41d4
commit
8054aafb9a
22 changed files with 109 additions and 113 deletions
|
@ -87,7 +87,7 @@ setsector(void)
|
|||
if (sect.sct_own != 0)
|
||||
resnoise(§, 1, "Iron ore content",
|
||||
(int)sect.sct_min, current);
|
||||
sect.sct_min = (u_char)current;
|
||||
sect.sct_min = (unsigned char)current;
|
||||
putsect(§);
|
||||
}
|
||||
break;
|
||||
|
@ -108,7 +108,7 @@ setsector(void)
|
|||
if (sect.sct_own != 0)
|
||||
resnoise(§, 1, "Gold content",
|
||||
(int)sect.sct_gmin, current);
|
||||
sect.sct_gmin = (u_char)current;
|
||||
sect.sct_gmin = (unsigned char)current;
|
||||
putsect(§);
|
||||
}
|
||||
break;
|
||||
|
@ -131,7 +131,7 @@ setsector(void)
|
|||
if (sect.sct_own != 0)
|
||||
resnoise(§, 1, "Oil content",
|
||||
(int)sect.sct_oil, current);
|
||||
sect.sct_oil = (u_char)current;
|
||||
sect.sct_oil = (unsigned char)current;
|
||||
putsect(§);
|
||||
}
|
||||
break;
|
||||
|
@ -204,7 +204,7 @@ setsector(void)
|
|||
current = 100;
|
||||
pr("Efficiency in %s changed to %d.\n",
|
||||
xyas(sect.sct_x, sect.sct_y, player->cnum), current);
|
||||
sect.sct_effic = (u_char)current;
|
||||
sect.sct_effic = (unsigned char)current;
|
||||
putsect(§);
|
||||
}
|
||||
break;
|
||||
|
@ -291,7 +291,7 @@ setsector(void)
|
|||
current = 100;
|
||||
pr("Work in %s changed to %d.\n",
|
||||
xyas(sect.sct_x, sect.sct_y, player->cnum), current);
|
||||
sect.sct_work = (u_char)current;
|
||||
sect.sct_work = (unsigned char)current;
|
||||
putsect(§);
|
||||
}
|
||||
break;
|
||||
|
@ -312,7 +312,7 @@ setsector(void)
|
|||
if (sect.sct_own != 0)
|
||||
resnoise(§, 1, "Fertility content",
|
||||
(int)sect.sct_fertil, current);
|
||||
sect.sct_fertil = (u_char)current;
|
||||
sect.sct_fertil = (unsigned char)current;
|
||||
putsect(§);
|
||||
}
|
||||
break;
|
||||
|
@ -333,7 +333,7 @@ setsector(void)
|
|||
if (sect.sct_own != 0)
|
||||
resnoise(§, 1, "Uranium content",
|
||||
(int)sect.sct_uran, current);
|
||||
sect.sct_uran = (u_char)current;
|
||||
sect.sct_uran = (unsigned char)current;
|
||||
putsect(§);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue