1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-27 05:38:14 +00:00

rotate_block does not rotate if forbidden

This commit is contained in:
Zeno Rogue 2020-10-26 19:37:22 +01:00
parent c836733ba3
commit 9c376539c4

View File

@ -801,8 +801,10 @@ void set_tview(transmatrix T) {
}
void rotate_block(int d) {
if(!rotate_allowed)
if(!rotate_allowed) {
playSound(cwt.at, "hit-crush3");
return;
}
remove_shape();
cellwalker at1 = flatspin(at, d);
if(!shape_conflict(at1)) {