mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-26 21:37:02 +00:00
move by clicking (or stay by clicking down) in 3D
This commit is contained in:
parent
4a65e11c1d
commit
680a3cc867
14
control.cpp
14
control.cpp
@ -156,7 +156,19 @@ void calcMousedest() {
|
||||
}
|
||||
|
||||
void mousemovement() {
|
||||
if(DIM == 3) return;
|
||||
if(DIM == 3) {
|
||||
if(WDIM == 2) {
|
||||
if(View[2][2] < -0.75)
|
||||
movepcto(MD_DROP, 1);
|
||||
else if(View[2][2] > 0.75)
|
||||
movepcto(-1, 1);
|
||||
else
|
||||
movepckeydir(6);
|
||||
return;
|
||||
}
|
||||
movepckeydir(6);
|
||||
return;
|
||||
}
|
||||
|
||||
if(protect_memory()) return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user