v1.1.2: fixed hero being able to rest while cell selectors are present
This commit is contained in:
parent
b7119acd3e
commit
336b2f338d
|
@ -85,8 +85,10 @@ public class Toolbar extends Component {
|
||||||
add(btnWait = new Tool(24, 0, 20, 26) {
|
add(btnWait = new Tool(24, 0, 20, 26) {
|
||||||
@Override
|
@Override
|
||||||
protected void onClick() {
|
protected void onClick() {
|
||||||
examining = false;
|
if (!GameScene.cancel()) {
|
||||||
Dungeon.hero.rest(false);
|
examining = false;
|
||||||
|
Dungeon.hero.rest(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -95,8 +97,10 @@ public class Toolbar extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean onLongClick() {
|
protected boolean onLongClick() {
|
||||||
examining = false;
|
if (!GameScene.cancel()) {
|
||||||
Dungeon.hero.rest(true);
|
examining = false;
|
||||||
|
Dungeon.hero.rest(true);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user