From 16cc147173921bfe1e2a4932ada18795c9ca6ae3 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 17 Oct 2022 07:12:38 +0200 Subject: [PATCH] - fixed bad distance check. This originally was 18000, not 10000 --- source/games/sw/src/weapon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/sw/src/weapon.cpp b/source/games/sw/src/weapon.cpp index 04e628c9d..06467a499 100644 --- a/source/games/sw/src/weapon.cpp +++ b/source/games/sw/src/weapon.cpp @@ -11782,7 +11782,7 @@ int DoSerpRing(DSWActor* actor) double dist = (actor->spr.pos.XY() - actor->user.targetActor->spr.pos.XY()).Length(); // if ((dist ok and random ok) OR very few skulls left) - if ((dist < 625 && (RANDOM_P2(2048<<5)>>5) < 16) || own->user.Counter < 4) + if ((dist < 1125 && (RANDOM_P2(2048<<5)>>5) < 16) || own->user.Counter < 4) { auto sect = actor->sector(); updatesector(actor->spr.pos, §);