mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 11:44:30 +00:00
Fix reference error in cfdd37f6d9 by computing that value independent from prior code.
This was SVN commit r20419.
This commit is contained in:
@@ -405,7 +405,7 @@ function rndRiver(f, seed)
|
||||
rndRw = 10 * (rndRw % 1);
|
||||
|
||||
let rndRr = f % 1;
|
||||
let retVal = (i % 2 ? 1 : -1) * rndRr * (rndRr - 1);
|
||||
let retVal = (Math.floor(f) % 2 ? -1 : 1) * rndRr * (rndRr - 1);
|
||||
|
||||
let rndRe = Math.floor(rndRw) % 5;
|
||||
if (rndRe == 0)
|
||||
|
||||
Reference in New Issue
Block a user