Narrow struct sctstr member sct_mobil to char
To bring it in line with unit mobility.
This commit is contained in:
parent
ca2dba33f0
commit
aa659c7754
4 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue