v0.9.4: removed superfluous INSTANCE tracking in WndUseItem
This commit is contained in:
@@ -30,9 +30,6 @@ import java.util.ArrayList;
|
||||
|
||||
public class WndUseItem extends WndInfoItem {
|
||||
|
||||
//only one wnduseitem can appear at a time
|
||||
private static WndUseItem INSTANCE;
|
||||
|
||||
private static final float BUTTON_HEIGHT = 16;
|
||||
|
||||
private static final float GAP = 2;
|
||||
@@ -41,11 +38,6 @@ public class WndUseItem extends WndInfoItem {
|
||||
|
||||
super(item);
|
||||
|
||||
if( INSTANCE != null ){
|
||||
INSTANCE.hide();
|
||||
}
|
||||
INSTANCE = this;
|
||||
|
||||
float y = height + GAP;
|
||||
|
||||
if (Dungeon.hero.isAlive()) {
|
||||
|
||||
Reference in New Issue
Block a user