diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/fourisland/fourpuzzle/gamestate/mapview/event/LayerEvent.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/LayerEvent.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/LayerEvent.java index c88c42b..b31705d 100644 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/LayerEvent.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/LayerEvent.java | |||
@@ -78,13 +78,7 @@ public class LayerEvent extends AbstractEvent implements Event { | |||
78 | public void render(Graphics g) | 78 | public void render(Graphics g) |
79 | { | 79 | { |
80 | PossibleEvent toDraw = getPossibleEvent(); | 80 | PossibleEvent toDraw = getPossibleEvent(); |
81 | 81 | if (!(toDraw.getGraphic() instanceof BlankEventGraphic)) | |
82 | /* TODO Replace below condition with an instanceof check to | ||
83 | * see if toDraw.getGraphic() is an instance of BlankEventGraphic. | ||
84 | * The current way requires BlankEventGraphic() to be instantated | ||
85 | * many times for no reason. */ | ||
86 | |||
87 | if (!toDraw.getGraphic().equals(new BlankEventGraphic())) | ||
88 | { | 82 | { |
89 | g.drawImage(toDraw.getImage(), getRenderX(), getRenderY(), null); | 83 | g.drawImage(toDraw.getImage(), getRenderX(), getRenderY(), null); |
90 | } | 84 | } |