Revision 9af27f9c
Added by Leszek Koltunski almost 2 years ago
src/main/java/org/distorted/objects/RubikObjectList.java | ||
---|---|---|
506 | 506 |
|
507 | 507 |
private static void markAsFree(RubikObject object, RubikScores scores) |
508 | 508 |
{ |
509 |
String shortName = object.getUpperName(); |
|
509 | 510 |
if( SHOW_IAP_DEBUG ) android.util.Log.e("D", "object "+object.getUpperName()+" marked as free"); |
510 | 511 |
object.markFree(); |
511 | 512 |
int price = object.getPrice(); |
512 | 513 |
scores.changeNumStars(-price); |
514 |
String add = mBoughtObjects.length()==0 ? shortName : (","+shortName); |
|
515 |
mBoughtObjects += add; |
|
513 | 516 |
} |
514 | 517 |
|
515 | 518 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Fix marking objects as free.