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