From 97badfedf1202f67e2b9f8a26f9fd849e4883863 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 11 Aug 2023 10:32:26 -0400 Subject: [PATCH] Fix enemy displacement ob torpedo hit. This breaks abnout half the tests. We move these out of the way so as not to break bisection testing; they'll be fixed in future commits. --- sst.py | 2 +- test/{test04.chk => test04.chk-old} | 0 test/{test04.log => test04.log-old} | 0 test/{test05.chk => test05.chk-old} | 0 test/{test05.log => test05.log-old} | 0 test/{test07.chk => test07.chk-old} | 0 test/{test07.log => test07.log-old} | 0 test/{test08.chk => test08.chk-old} | 0 test/{test08.log => test08.log-old} | 0 test/{test09.chk => test09.chk-old} | 0 test/{test09.log => test09.log-old} | 0 test/{test10.chk => test10.chk-old} | 0 test/{test10.log => test10.log-old} | 0 test/{test12.chk => test12.chk-old} | 0 test/{test12.log => test12.log-old} | 0 15 files changed, 1 insertion(+), 1 deletion(-) rename test/{test04.chk => test04.chk-old} (100%) rename test/{test04.log => test04.log-old} (100%) rename test/{test05.chk => test05.chk-old} (100%) rename test/{test05.log => test05.log-old} (100%) rename test/{test07.chk => test07.chk-old} (100%) rename test/{test07.log => test07.log-old} (100%) rename test/{test08.chk => test08.chk-old} (100%) rename test/{test08.log => test08.log-old} (100%) rename test/{test09.chk => test09.chk-old} (100%) rename test/{test09.log => test09.log-old} (100%) rename test/{test10.chk => test10.chk-old} (100%) rename test/{test10.log => test10.log-old} (100%) rename test/{test12.chk => test12.chk-old} (100%) rename test/{test12.log => test12.log-old} (100%) diff --git a/sst.py b/sst.py index d25e3c6..5200f24 100755 --- a/sst.py +++ b/sst.py @@ -1327,7 +1327,7 @@ def torpedo(origin, bearing, dispersion, number, nburst): deadkl(w, iquad, w) return None proutn(crmena(True, iquad, "sector", w)) - displacement = course(track.bearing+rnd.real(-2.4, 2.4), distance=2**0.5) + displacement = course(track.bearing+rnd.real(-2.4, 2.4), distance=2**0.5, origin=w) displacement.nexttok() bumpto = displacement.sector() if not bumpto.valid_sector(): diff --git a/test/test04.chk b/test/test04.chk-old similarity index 100% rename from test/test04.chk rename to test/test04.chk-old diff --git a/test/test04.log b/test/test04.log-old similarity index 100% rename from test/test04.log rename to test/test04.log-old diff --git a/test/test05.chk b/test/test05.chk-old similarity index 100% rename from test/test05.chk rename to test/test05.chk-old diff --git a/test/test05.log b/test/test05.log-old similarity index 100% rename from test/test05.log rename to test/test05.log-old diff --git a/test/test07.chk b/test/test07.chk-old similarity index 100% rename from test/test07.chk rename to test/test07.chk-old diff --git a/test/test07.log b/test/test07.log-old similarity index 100% rename from test/test07.log rename to test/test07.log-old diff --git a/test/test08.chk b/test/test08.chk-old similarity index 100% rename from test/test08.chk rename to test/test08.chk-old diff --git a/test/test08.log b/test/test08.log-old similarity index 100% rename from test/test08.log rename to test/test08.log-old diff --git a/test/test09.chk b/test/test09.chk-old similarity index 100% rename from test/test09.chk rename to test/test09.chk-old diff --git a/test/test09.log b/test/test09.log-old similarity index 100% rename from test/test09.log rename to test/test09.log-old diff --git a/test/test10.chk b/test/test10.chk-old similarity index 100% rename from test/test10.chk rename to test/test10.chk-old diff --git a/test/test10.log b/test/test10.log-old similarity index 100% rename from test/test10.log rename to test/test10.log-old diff --git a/test/test12.chk b/test/test12.chk-old similarity index 100% rename from test/test12.chk rename to test/test12.chk-old diff --git a/test/test12.log b/test/test12.log-old similarity index 100% rename from test/test12.log rename to test/test12.log-old -- 2.31.1