From fa8eada221de5c81f52554119ca510d6c77b909b Mon Sep 17 00:00:00 2001 From: ephphatha Date: Sun, 20 Jun 2021 11:59:15 +1000 Subject: [PATCH] Remove unused variable. It was documented as if this stored a seed in the previous LCG cycle but it actually stored the initial seed for the current cycle. This value is never used. --- Source/engine.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Source/engine.cpp b/Source/engine.cpp index 54b3dff61..2646e8d24 100644 --- a/Source/engine.cpp +++ b/Source/engine.cpp @@ -21,8 +21,6 @@ namespace devilution { -/** Seed value before the most recent call to SetRndSeed() */ -int32_t orgseed; /** Current game seed */ int32_t sglGameSeed; @@ -258,7 +256,6 @@ int CalculateWidth2(int width) void SetRndSeed(int32_t s) { sglGameSeed = s; - orgseed = s; } /**