(pln_hitchance): Change tfact from float to double, because it is used

as double.
This commit is contained in:
Markus Armbruster 2006-05-21 13:03:40 +00:00
parent cd73a47dfa
commit 281840b604

View file

@ -1133,7 +1133,7 @@ int
pln_hitchance(struct plnstr *pp, int hardtarget, int type) pln_hitchance(struct plnstr *pp, int hardtarget, int type)
{ {
struct plchrstr *pcp = plchr + pp->pln_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); (pp->pln_tech - pcp->pl_tech / 2);
int acc = pp->pln_acc; int acc = pp->pln_acc;
int hitchance; int hitchance;