mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
New option NEW_RANDOM (default TRUE) enables new code for random number generation.
Fixed PreRandom(1) bug in AddPlacementToWorld. AddPossiblePendingEnemiesToBattle: use Random(4) instead of GetRndNum(3) for random insertion code. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8747 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1910,7 +1910,9 @@ void AddPossiblePendingEnemiesToBattle()
|
||||
else
|
||||
{
|
||||
// WANNE: Hack: If no valid insertion is found, get random insertion instead of Assert() error
|
||||
UINT32 rndInsertionCode = GetRndNum(3);
|
||||
// sevenfm: use Random() instead
|
||||
//UINT32 rndInsertionCode = GetRndNum(3);
|
||||
UINT32 rndInsertionCode = Random(4);
|
||||
ubInsertionCode = rndInsertionCode;
|
||||
|
||||
//Assert(0);
|
||||
@@ -1929,9 +1931,11 @@ void AddPossiblePendingEnemiesToBattle()
|
||||
else
|
||||
{
|
||||
// WANNE: Hack: If no valid insertion is found, get random insertion instead of Assert() error
|
||||
UINT32 rndInsertionCode = GetRndNum(3);
|
||||
// sevenfm: use Random() instead
|
||||
//UINT32 rndInsertionCode = GetRndNum(3);
|
||||
UINT32 rndInsertionCode = Random(4);
|
||||
ubInsertionCode = rndInsertionCode;
|
||||
|
||||
|
||||
//Assert(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user