Gates' extraordinal behavior with boxes fixed.
This commit is contained in:
parent
47b894f99e
commit
12ac49938d
@ -34,7 +34,10 @@ public class Gate extends Tile {
|
||||
@Override
|
||||
public boolean isSteppable()
|
||||
{
|
||||
return open;
|
||||
if(open)
|
||||
return !hasBox();
|
||||
else
|
||||
return open;
|
||||
}
|
||||
|
||||
public boolean isOpen() {
|
||||
|
@ -15,7 +15,8 @@ public class GateDrawer extends AbstractDrawer {
|
||||
if(gate.isOpen()) {
|
||||
if(gate.hasBox())
|
||||
changeImage("OpenGate_Box.png");
|
||||
changeImage("OpenGate.png");
|
||||
else
|
||||
changeImage("OpenGate.png");
|
||||
}
|
||||
else
|
||||
changeImage("Gate.png");
|
||||
|
Loading…
Reference in New Issue
Block a user