SCCS-vsn: games/canfield/canfield/canfield.c 4.7
time_t now;
register long dollars;
time_t now;
register long dollars;
- thiscosts = this.hand + this.inspection + this.game +
- this.runs + this.information + this.thinktime;
- totalcosts = total.hand + total.inspection + total.game +
- total.runs + total.information + total.thinktime;
- this.worth = this.wins - thiscosts;
- total.worth = total.wins - totalcosts;
time(&now);
dollars = (now - acctstart) / secondsperdollar;
if (dollars > 0) {
time(&now);
dollars = (now - acctstart) / secondsperdollar;
if (dollars > 0) {
total.thinktime += dollars;
acctstart += dollars * secondsperdollar;
}
total.thinktime += dollars;
acctstart += dollars * secondsperdollar;
}
+ thiscosts = this.hand + this.inspection + this.game +
+ this.runs + this.information + this.thinktime;
+ totalcosts = total.hand + total.inspection + total.game +
+ total.runs + total.information + total.thinktime;
+ this.worth = this.wins - thiscosts;
+ total.worth = total.wins - totalcosts;
if (status != BETTINGBOX)
return;
move(tboxrow + 3, boxcol + 13);
if (status != BETTINGBOX)
return;
move(tboxrow + 3, boxcol + 13);
+ status = NOBOX;
+ updatebettinginfo();
if (dbfd != -1) {
write(dbfd, (char *)&total, sizeof(total));
close(dbfd);
if (dbfd != -1) {
write(dbfd, (char *)&total, sizeof(total));
close(dbfd);