Narrow struct sctstr member sct_mobil to char

To bring it in line with unit mobility.
This commit is contained in:
Markus Armbruster 2009-12-31 11:39:17 +01:00
parent ca2dba33f0
commit aa659c7754
4 changed files with 5 additions and 5 deletions

View file

@ -353,12 +353,12 @@ put_combat(struct combat *com)
if ((com->mob - com->mobcost) < -127)
sect.sct_mobil = -127;
else
sect.sct_mobil = (short)(com->mob - com->mobcost);
sect.sct_mobil = com->mob - com->mobcost;
} else {
if ((com->mob - com->mobcost) < 0)
sect.sct_mobil = 0;
else
sect.sct_mobil = (short)(com->mob - com->mobcost);
sect.sct_mobil = com->mob - com->mobcost;
}
}
sect.sct_own = com->own;