Fixes bool return being evaluated inverted

This commit is contained in:
2019-09-19 15:50:17 +02:00
parent 5637e82dbe
commit 6b53877aa5
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ namespace PorygonSharp.EvalValues
public bool EvaluateBool()
{
return EvaluateBool(_handle);
return EvaluateBool(_handle) == 1;
}
public string EvaluateString()
@@ -98,7 +98,7 @@ namespace PorygonSharp.EvalValues
[DllImport("PorygonLang", EntryPoint = "EvaluateEvalValueFloat", CallingConvention = CallingConvention.Cdecl)]
private static extern double EvaluateFloat(IntPtr ptr);
[DllImport("PorygonLang", EntryPoint = "EvaluateEvalValueBool", CallingConvention = CallingConvention.Cdecl)]
private static extern bool EvaluateBool(IntPtr ptr);
private static extern byte EvaluateBool(IntPtr ptr);
[DllImport("PorygonLang", EntryPoint = "GetEvalValueStringLength",CallingConvention = CallingConvention.Cdecl)]
private static extern int GetStringLength(IntPtr ptr);

Binary file not shown.