mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 03:12:19 +00:00
Applies tech modifications to template data returned by GuiInterface. Extends engine to load arbitrary global scripts, separates this from RNG replacement. Refs #1193. Loads global scripts for most script contexts for consistency. Adds simulation tests for global scripts. This was SVN commit r12056.
This commit is contained in:
@@ -116,7 +116,7 @@ public:
|
||||
TS_ASSERT_DIFFERS(d1, d2);
|
||||
|
||||
boost::rand48 rng;
|
||||
script.ReplaceNondeterministicFunctions(rng);
|
||||
script.ReplaceNondeterministicRNG(rng);
|
||||
rng.seed((u64)0);
|
||||
TS_ASSERT(script.Eval("Math.random()", d1));
|
||||
TS_ASSERT(script.Eval("Math.random()", d2));
|
||||
|
||||
Reference in New Issue
Block a user