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
1 changed files with 13 additions and 1 deletions

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;