Project

General

Profile

« Previous | Next » 

Revision 1f6d1786

Added by Leszek Koltunski almost 2 years ago

Lots of progress with the main screen

View differences:

distorted-sokoban/src/main/java/org/distorted/sokoban/SokobanRecordInfo.java
51 51
  country = c;
52 52
  movetime = move<SokobanDatabase.INVALID ? move+"m "+time+"s" : null;
53 53
  img = SokobanLevels.getInstance().getFlag(c);
54
  mine = SokobanDatabase.getName().equals(n);
54

  
55
  SokobanDatabase db = SokobanDatabase.getInstance();
56
  mine = (db!=null && db.getName().equals(n));
55 57

  
56 58
  setCut();
57 59
  }
......
71 73
public void set(String n)
72 74
  {
73 75
  name = n;
74
  mine = SokobanDatabase.getName().equals(n);
76
  mine = SokobanDatabase.getInstance().getName().equals(n);
75 77
  setCut();
76 78
  }
77 79

  

Also available in: Unified diff