From 51ae22363df221b834369599d491f18fb490966f Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 11 Mar 2019 18:49:41 +0100 Subject: [PATCH] 3d:: limit distance between players --- shmup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shmup.cpp b/shmup.cpp index 3483a288..5cd5562c 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -1314,7 +1314,7 @@ monster *playerCrash(monster *who, hyperpoint where) { for(int j=0; jisVirtual) continue; double d = intval(pc[j]->pat*C0, where); - if(d < 0.1 * SCALE2 || d > 100) return pc[j]; + if(d < 0.1 * SCALE2 || d > 100 || (DIM == 3 && hdist(tC0(pc[j]->pat), where) > sightranges[geometry]/2)) return pc[j]; } return NULL; }