Differences From Artifact [ef5cfcc2ac51c863]:
- File
src/output.d
- 2012-07-15 04:44:33 - part of checkin [879099f815] on branch trunk - Moved 'abort' behavior completely out of Game. (user: kinaba) [annotate]
To Artifact [045b845268918546]:
- File
src/output.d
- 2012-07-15 06:15:47 - part of checkin [f6c126aeeb] on branch trunk - better flushed check. (user: kinaba) [annotate]
- 2012-07-15 12:14:10 - part of checkin [e02668367d] on branch trunk - Revert redesign in the trunk. (user: kinaba) [annotate]
42 42 private:
43 43 string log;
44 44 long[] score_log;
45 45 bool flushed;
46 46
47 47 void flush()
48 48 {
49 + if(flushed)
50 + return;
51 +
49 52 Tuple!(long, int) cand;
50 53 cand[0] = long.min;
51 54
52 55 for(int i=0; i<score_log.length; ++i)
53 56 if(cand[0] < score_log[i])
54 57 cand = tuple(score_log[i],i);
55 58