Skip to content

Commit 87d7259

Browse files
committed
Renamed functions and macros again.
1 parent f6b309f commit 87d7259

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Core/GameEngine/Include/GameLogic/LogicRandomValue.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333

3434
// do NOT use these functions directly, rather use the macros below
3535
extern Int GetGameLogicRandomValue( int lo, int hi, const char *file, int line );
36-
extern Int GetGameLogicCurrentRandomValue(int lo, int hi, const char* file, int line);
36+
extern Int GetGameLogicRandomValueUnchanged(int lo, int hi, const char* file, int line);
3737
extern Real GetGameLogicRandomValueReal( Real lo, Real hi, const char *file, int line );
38-
extern Real GetGameLogicCurrentRandomValueReal(Real lo, Real hi, const char* file, int line);
38+
extern Real GetGameLogicRandomValueRealUnchanged(Real lo, Real hi, const char* file, int line);
3939

4040
// use these macros to access the random value functions
4141
#define GameLogicRandomValue( lo, hi ) GetGameLogicRandomValue( lo, hi, __FILE__, __LINE__ )
42-
#define GameLogicCurrentRandomValue( lo, hi ) GetGameLogicCurrentRandomValue( lo, hi, __FILE__, __LINE__ )
42+
#define GameLogicRandomValueUnchanged( lo, hi ) GetGameLogicRandomValueUnchanged( lo, hi, __FILE__, __LINE__ )
4343
#define GameLogicRandomValueReal( lo, hi ) GetGameLogicRandomValueReal( lo, hi, __FILE__, __LINE__ )
44-
#define GameLogicCurrentRandomValueReal( lo, hi ) GetGameLogicCurrentRandomValueReal( lo, hi, __FILE__, __LINE__ )
44+
#define GameLogicRandomValueRealUnchanged( lo, hi ) GetGameLogicRandomValueRealUnchanged( lo, hi, __FILE__, __LINE__ )
4545

4646
//--------------------------------------------------------------------------------------------------------------
4747
class CColorAlphaDialog;

Core/GameEngine/Source/Common/Audio/AudioEventRTS.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ void AudioEventRTS::generateFilename( void )
340340
{
341341
if (m_isLogicalAudio)
342342
{
343-
which = GameLogicCurrentRandomValue(0, m_eventInfo->m_sounds.size() - 1);
343+
which = GameLogicRandomValueUnchanged(0, m_eventInfo->m_sounds.size() - 1);
344344
}
345345
else
346346
{
@@ -388,7 +388,7 @@ void AudioEventRTS::generatePlayInfo( void )
388388
// needs to be logic because it needs to be the same on all systems.
389389
Int attackToPlay;
390390
if (m_isLogicalAudio) {
391-
attackToPlay = GameLogicCurrentRandomValue(0, attackSize - 1);
391+
attackToPlay = GameLogicRandomValueUnchanged(0, attackSize - 1);
392392
} else {
393393
attackToPlay = GameAudioRandomValue(0, attackSize - 1);
394394
}
@@ -406,7 +406,7 @@ void AudioEventRTS::generatePlayInfo( void )
406406
// needs to be logic because it needs to be the same on all systems.
407407
Int decayToPlay;
408408
if (m_isLogicalAudio) {
409-
decayToPlay = GameLogicCurrentRandomValue(0, decaySize - 1);
409+
decayToPlay = GameLogicRandomValueUnchanged(0, decaySize - 1);
410410
} else {
411411
decayToPlay = GameAudioRandomValue(0, decaySize - 1);
412412
}

Core/GameEngine/Source/Common/RandomValue.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ DEBUG_LOG(( "%d: GetGameLogicRandomValue = %d (%d - %d), %s line %d",
234234
// The intended use case for this function are randomized values that are desirable to be synchronized across clients,
235235
// but should not result in a mismatch if they aren't; e.g. for scripted audio events.
236236
//
237-
Int GetGameLogicCurrentRandomValue( int lo, int hi, const char *file, int line )
237+
Int GetGameLogicRandomValueUnchanged( int lo, int hi, const char *file, int line )
238238
{
239239
#if RETAIL_COMPATIBLE_CRC
240240
return GetGameLogicRandomValue(lo, hi, file, line);
@@ -252,7 +252,7 @@ Int GetGameLogicCurrentRandomValue( int lo, int hi, const char *file, int line )
252252
DEBUG_ASSERTCRASH(rval >= lo && rval <= hi, ("Bad random val"));
253253

254254
#ifdef DEBUG_RANDOM_LOGIC
255-
DEBUG_LOG(( "%d: GetGameLogicCurrentRandomValue = %d (%d - %d), %s line %d",
255+
DEBUG_LOG(( "%d: GetGameLogicRandomValueUnchanged = %d (%d - %d), %s line %d",
256256
TheGameLogic->getFrame(), rval, lo, hi, file, line ));
257257
#endif
258258

@@ -335,7 +335,7 @@ DEBUG_LOG(( "%d: GetGameLogicRandomValueReal = %f, %s line %d",
335335
// The intended use case for this function are randomized values that are desirable to be synchronized across clients,
336336
// but should not result in a mismatch if they aren't; e.g. for scripted audio events.
337337
//
338-
Real GetGameLogicCurrentRandomValueReal( Real lo, Real hi, const char *file, int line )
338+
Real GetGameLogicRandomValueRealUnchanged( Real lo, Real hi, const char *file, int line )
339339
{
340340
#if RETAIL_COMPATIBLE_CRC
341341
return GetGameLogicRandomValueReal(lo, hi, file, line);
@@ -353,7 +353,7 @@ Real GetGameLogicCurrentRandomValueReal( Real lo, Real hi, const char *file, int
353353
DEBUG_ASSERTCRASH(rval >= lo && rval <= hi, ("Bad random val"));
354354

355355
#ifdef DEBUG_RANDOM_LOGIC
356-
DEBUG_LOG(( "%d: GetGameLogicCurrentRandomValueReal = %f, %s line %d",
356+
DEBUG_LOG(( "%d: GetGameLogicRandomValueRealUnchanged = %f, %s line %d",
357357
TheGameLogic->getFrame(), rval, file, line ));
358358
#endif
359359

0 commit comments

Comments
 (0)