1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 19:29:59 +00:00

move by clicking (or stay by clicking down) in 3D

This commit is contained in:
Zeno Rogue 2019-06-28 09:57:11 +02:00
parent 4a65e11c1d
commit 680a3cc867

View File

@ -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;