Fixes bool return being evaluated inverted
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user