Revision 1f6d1786
Added by Leszek Koltunski almost 2 years ago
distorted-sokoban/src/main/java/org/distorted/sokoban/SokobanLevels.java | ||
---|---|---|
917 | 917 |
{ |
918 | 918 |
if( state==SokobanCanvas.STATE_MAIN && clickedLevel>=0 && dx*dx+dy*dy<=MIN_CLICK_DIST*MIN_CLICK_DIST) |
919 | 919 |
{ |
920 |
SokobanDatabase.incNumPlayings(); |
|
920 |
SokobanDatabase.getInstance().incNumPlayings();
|
|
921 | 921 |
currLevel = clickedLevel; |
922 | 922 |
currMoves = 0; |
923 | 923 |
SokobanCanvas.getMenu().enterPlayState(currLevel); |
... | ... | |
1135 | 1135 |
|
1136 | 1136 |
if( currMoves < m || (currMoves==m && currTime<sl.getMyTime() ) ) |
1137 | 1137 |
{ |
1138 |
sl.setMyInfo(currMoves,currTime,SokobanDatabase.getName(), SokobanDatabase.getCountry()); |
|
1138 |
SokobanDatabase db = SokobanDatabase.getInstance(); |
|
1139 |
sl.setMyInfo(currMoves,currTime,db.getName(),db.getCountry()); |
|
1139 | 1140 |
sl.setDirty(); |
1140 | 1141 |
SokobanLevelBuffer.invalidateAllR(); |
1141 | 1142 |
SokobanCanvas.setState(SokobanCanvas.STATE_NEWR); |
Also available in: Unified diff
Lots of progress with the main screen