- fixed a few oversights.
- switched p_buildmap to use the floating point variants of the linedef/sector init methods.
This commit is contained in:
parent
c2e2910399
commit
ced30e7bbb
7 changed files with 77 additions and 89 deletions
|
|
@ -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)))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue