Changeset 24 for events/src/main/java/geniusweb/actions
- Timestamp:
- 10/06/20 13:12:20 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
events/src/main/java/geniusweb/actions/Votes.java
r21 r24 57 57 * with power at most P. 58 58 * 59 * @param otherVotes 59 * @param otherVotes the {@link Votes}, usually from a previous round, that 60 * this should extend. 60 61 * @return true iff this extends the otherVotes. 61 62 */ … … 65 66 for (Vote vote : otherVotes.getVotes()) { 66 67 Vote myvote = getVote(vote.getBid()); 67 if (myvote == null) 68 return false; 69 if (myvote.getMinPower() > vote.getMinPower()) 68 if (myvote == null || myvote.getMinPower() > vote.getMinPower() 69 || myvote.getMaxPower() < vote.getMaxPower()) 70 70 return false; 71 71 }
Note:
See TracChangeset
for help on using the changeset viewer.