Project

General

Profile

« Previous | Next » 

Revision 00fcfefa

Added by Leszek Koltunski over 1 year ago

All users who are upgrading from a version <1.11.4, where there was no concept of 'stars', get all their stars.

View differences:

src/main/java/org/distorted/main/RubikObjectLibInterface.java
450 450
        case RECORD_FIRST  : RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass();
451 451
                             int level = play.getLevel();
452 452
                             RubikScores scores = RubikScores.getInstance();
453
                             int newStars = RubikObjectList.computeNumStars(level);
453
                             int newStars = scores.computeNumStars(level);
454 454
                             scores.changeNumStars(newStars);
455 455
                             RubikDialogNewRecord d1 = new RubikDialogNewRecord();
456 456
                             d1.setArguments(bundle);

Also available in: Unified diff