Round of bugfixes.
This commit is contained in:
parent
903cb95f1e
commit
8839baa687
|
@ -5,7 +5,7 @@
|
||||||
<HasSharedItems>true</HasSharedItems>
|
<HasSharedItems>true</HasSharedItems>
|
||||||
<SharedGUID>8a3cdcc5-4b55-4d87-a415-698a0e1ff06f</SharedGUID>
|
<SharedGUID>8a3cdcc5-4b55-4d87-a415-698a0e1ff06f</SharedGUID>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="$(MSBuildThisFileDirectory)/**/*.cs" Visible=" '$(ShowCommonFiles)' == 'true' " />
|
<Compile Include="$(MSBuildThisFileDirectory)Console.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
|
@ -1,5 +1,7 @@
|
||||||
using Sandbox.ModAPI.Ingame;
|
using Sandbox.ModAPI.Ingame;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using VRage.Game.ModAPI.Ingame.Utilities;
|
||||||
|
|
||||||
namespace IngameScript
|
namespace IngameScript
|
||||||
{
|
{
|
||||||
|
@ -17,6 +19,7 @@ namespace IngameScript
|
||||||
{
|
{
|
||||||
private Program _program;
|
private Program _program;
|
||||||
private IConsole _console;
|
private IConsole _console;
|
||||||
|
private MyIni _ini;
|
||||||
|
|
||||||
private string _id;
|
private string _id;
|
||||||
private int _rank;
|
private int _rank;
|
||||||
|
@ -55,10 +58,10 @@ namespace IngameScript
|
||||||
{
|
{
|
||||||
_ini.TryParse(node.CustomData);
|
_ini.TryParse(node.CustomData);
|
||||||
|
|
||||||
string foreignId = _ini.Get("failover", "id");
|
string foreignId = _ini.Get("failover", "id").ToString();
|
||||||
if (foreignId != _id) continue;
|
if (foreignId != _id) continue;
|
||||||
|
|
||||||
int foreignRank = _ini.Get("failover", "rank");
|
int foreignRank = _ini.Get("failover", "rank").ToInt32(-1);
|
||||||
if (foreignRank == -1) continue;
|
if (foreignRank == -1) continue;
|
||||||
|
|
||||||
_nodes[foreignRank] = node;
|
_nodes[foreignRank] = node;
|
||||||
|
|
|
@ -11,4 +11,4 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="$(MSBuildThisFileDirectory)readme.md" />
|
<None Include="$(MSBuildThisFileDirectory)readme.md" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -15,6 +15,5 @@
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="FailoverManager.projitems" Label="Shared"/>
|
<Import Project="FailoverManager.projitems" Label="Shared"/>
|
||||||
<Import Project="../Console/Console.projitems" Label="Shared"/>
|
|
||||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets"/>
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets"/>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user