Home
last modified time | relevance | path

Searched refs:totalfrom (Results 1 – 2 of 2) sorted by relevance

/dragonfly/games/sail/
H A Ddr_5.c45 subtract(struct ship *from, struct ship *fromcap, int totalfrom, int *crewfrom, in subtract() argument
50 if (fromcap == from && totalfrom) { /* if not captured */ in subtract()
52 if (totalfrom > crewfrom[n]) { in subtract()
53 totalfrom -= crewfrom[n]; in subtract()
56 crewfrom[n] -= totalfrom; in subtract()
57 totalfrom = 0; in subtract()
61 } else if (totalfrom) { in subtract()
62 pcfrom -= totalfrom; in subtract()
H A Ddr_1.c145 int indx, totalfrom = 0, totalto = 0; in fightitout() local
182 totalfrom += frominjured; in fightitout()
190 subtract(from, fromcap, totalfrom, crewfrom, pcfrom); in fightitout()
195 totalto, from->shipname, totalfrom); in fightitout()
201 subtract(from, fromcap, totalfrom, crewfrom, pcfrom); in fightitout()
226 totalto, from->shipname, totalfrom); in fightitout()