From 9c376539c4615f9b8c511f03844c94b52d396387 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 26 Oct 2020 19:37:22 +0100 Subject: [PATCH] rotate_block does not rotate if forbidden --- rogueviz/bringris.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rogueviz/bringris.cpp b/rogueviz/bringris.cpp index c13ef9a7..755f3e85 100644 --- a/rogueviz/bringris.cpp +++ b/rogueviz/bringris.cpp @@ -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)) {