(s_char): Remove. Use signed char for small integers, plain char for
characters.
This commit is contained in:
parent
0a3a73cf3d
commit
0c8c169f88
41 changed files with 86 additions and 100 deletions
|
@ -340,7 +340,7 @@ landrepair(struct lndstr *land, struct natstr *np,
|
|||
logerror("land unit %d building %d ! \n", land->lnd_uid, build);
|
||||
np->nat_money -= mult * lp->l_cost * build / 100.0;
|
||||
if (!player->simulation) {
|
||||
land->lnd_effic += (s_char)build;
|
||||
land->lnd_effic += (signed char)build;
|
||||
|
||||
putsect(sp);
|
||||
}
|
||||
|
|
|
@ -310,7 +310,7 @@ do_mob_ship(struct shpstr *sp, int etus)
|
|||
value = sp->shp_mobil + ((float)etus * ship_mob_scale);
|
||||
if (value > ship_mob_max)
|
||||
value = ship_mob_max;
|
||||
sp->shp_mobil = (s_char)value;
|
||||
sp->shp_mobil = (signed char)value;
|
||||
} else {
|
||||
can_add = ship_mob_max - sp->shp_mobil;
|
||||
if (can_add > ((float)etus * ship_mob_scale))
|
||||
|
|
|
@ -257,7 +257,7 @@ prod_plane(int etus, int natnum, int *bp, int buildem)
|
|||
air_money[pp->pln_own] += np->nat_money - start_money;
|
||||
|
||||
if (!player->simulation)
|
||||
pp->pln_effic += (s_char)build;
|
||||
pp->pln_effic += (signed char)build;
|
||||
else
|
||||
np->nat_money = start_money;
|
||||
k++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue