(pln_hitchance): Change tfact from float to double, because it is used
as double.
This commit is contained in:
parent
cd73a47dfa
commit
281840b604
1 changed files with 1 additions and 1 deletions
|
@ -1133,7 +1133,7 @@ int
|
|||
pln_hitchance(struct plnstr *pp, int hardtarget, int type)
|
||||
{
|
||||
struct plchrstr *pcp = plchr + pp->pln_type;
|
||||
float tfact = (float)(pp->pln_tech - pcp->pl_tech) /
|
||||
double tfact = (double)(pp->pln_tech - pcp->pl_tech) /
|
||||
(pp->pln_tech - pcp->pl_tech / 2);
|
||||
int acc = pp->pln_acc;
|
||||
int hitchance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue