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() {
|
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;
|
if(protect_memory()) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue