From 680a3cc867e513341ce7cff39efbbe1251d15f76 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 28 Jun 2019 09:57:11 +0200 Subject: [PATCH] move by clicking (or stay by clicking down) in 3D --- control.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/control.cpp b/control.cpp index 364ee60e..58ca609d 100644 --- a/control.cpp +++ b/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;