1
0
forked from 0ad/0ad

Fix failure in TestNetComms::test_basic_DISABLED. Patch by Echelon9. Fixes #2426.

This was SVN commit r15672.
This commit is contained in:
leper 2014-08-24 12:02:52 +00:00
parent 2f1d143dc2
commit 2b7e9728b6

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2012 Wildfire Games.
/* Copyright (C) 2014 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -149,7 +149,7 @@ public:
CNetServer server;
JS::RootedValue attrs(cx);
scriptInterface.Eval("({mapType:'scenario',map:'_default',thing:'example'})", &attrs);
scriptInterface.Eval("({mapType:'scenario',map:'maps/scenarios/Saharan Oases',mapPath:'maps/scenarios/',thing:'example'})", &attrs);
server.UpdateGameAttributes(&attrs, scriptInterface);
CNetClient client1(&client1Game);
@ -214,7 +214,7 @@ public:
CNetServer server;
JS::RootedValue attrs(cx);
scriptInterface.Eval("({mapType:'scenario',map:'_default',thing:'example'})", &attrs);
scriptInterface.Eval("({mapType:'scenario',map:'maps/scenarios/Saharan Oases',mapPath:'maps/scenarios/',thing:'example'})", &attrs);
server.UpdateGameAttributes(&attrs, scriptInterface);
CNetClient client1(&client1Game);