mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-04 21:26:17 +00:00
play sound if rotation not allowed
This commit is contained in:
parent
b409091e29
commit
d11825021a
@ -787,6 +787,8 @@ void set_tview(transmatrix T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void rotate_block(int d) {
|
void rotate_block(int d) {
|
||||||
|
if(!rotate_allowed)
|
||||||
|
playSound(cwt.at, "hit-crush3");
|
||||||
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