From 56d0d75216e986d580d5604f2b3ead85d991883f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 26 Sep 2022 14:57:08 +0200 Subject: [PATCH] SAGA2: Rename class variables in interp.cpp --- engines/saga2/interp.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/engines/saga2/interp.cpp b/engines/saga2/interp.cpp index 3f24eb80040..3f30350655d 100644 --- a/engines/saga2/interp.cpp +++ b/engines/saga2/interp.cpp @@ -470,27 +470,27 @@ uint8 *Thread::strAddress(int strNum) { // RandomGenerator class - a random number generator class for function // objects which each maintain a local seed. class RandomGenerator { - uint32 a; // seed - static const uint32 b; // arbitrary constant + uint32 _a; // seed + static const uint32 _b; // arbitrary constant public: - RandomGenerator() : a(1) { + RandomGenerator() : _a(1) { } RandomGenerator(uint16 seed) { - a = (uint32)seed << 16; + _a = (uint32)seed << 16; } void seed(uint16 seed) { - a = (uint32)seed << 16; + _a = (uint32)seed << 16; } uint16 operator()() { - a = (a * b) + 1; - return a >> 16; + _a = (_a * _b) + 1; + return _a >> 16; } }; -const uint32 RandomGenerator::b = 31415821; +const uint32 RandomGenerator::_b = 31415821; //----------------------------------------------------------------------- // A restricted random function