- fixed a few oversights.

- switched p_buildmap to use the floating point variants of the linedef/sector init methods.
This commit is contained in:
Christoph Oelckers 2016-03-30 11:25:02 +02:00
commit ced30e7bbb
7 changed files with 77 additions and 89 deletions

View file

@ -4620,7 +4620,7 @@ static void SetUserVariable(AActor *self, FName varname, int index, int value)
}
else
{
type->SetValue(addr, FIXED2DBL(value));
type->SetValue(addr, ACSToDouble(value));
}
}
}
@ -4634,7 +4634,7 @@ static int GetUserVariable(AActor *self, FName varname, int index)
{
if (type->IsKindOf(RUNTIME_CLASS(PFloat)))
{
return FLOAT2FIXED(type->GetValueFloat(addr));
return DoubleToACS(type->GetValueFloat(addr));
}
else if (type->IsA(RUNTIME_CLASS(PName)))
{