mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-15 17:54:48 +00:00
rotate_block does not rotate if forbidden
This commit is contained in:
parent
c836733ba3
commit
9c376539c4
@ -801,8 +801,10 @@ void set_tview(transmatrix T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void rotate_block(int d) {
|
void rotate_block(int d) {
|
||||||
if(!rotate_allowed)
|
if(!rotate_allowed) {
|
||||||
playSound(cwt.at, "hit-crush3");
|
playSound(cwt.at, "hit-crush3");
|
||||||
|
return;
|
||||||
|
}
|
||||||
remove_shape();
|
remove_shape();
|
||||||
cellwalker at1 = flatspin(at, d);
|
cellwalker at1 = flatspin(at, d);
|
||||||
if(!shape_conflict(at1)) {
|
if(!shape_conflict(at1)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user