- blocked off direct access to TAngle’s internal storage.
This commit is contained in:
parent
3d2578820b
commit
4032576519
31 changed files with 123 additions and 235 deletions
|
|
@ -1253,7 +1253,7 @@ static int DamageMobj (AActor *target, AActor *inflictor, AActor *source, int da
|
|||
{
|
||||
IFVIRTUALPTR(target, AActor, ApplyKickback)
|
||||
{
|
||||
VMValue params[] = { target, inflictor, source, damage, angle.Degrees, mod.GetIndex(), flags };
|
||||
VMValue params[] = { target, inflictor, source, damage, angle.Degrees(), mod.GetIndex(), flags };
|
||||
VMCall(func, params, countof(params), nullptr, 0);
|
||||
}
|
||||
}
|
||||
|
|
@ -1522,7 +1522,7 @@ int P_DamageMobj(AActor *target, AActor *inflictor, AActor *source, int damage,
|
|||
{
|
||||
IFVIRTUALPTR(target, AActor, DamageMobj)
|
||||
{
|
||||
VMValue params[7] = { target, inflictor, source, damage, mod.GetIndex(), flags, angle.Degrees };
|
||||
VMValue params[7] = { target, inflictor, source, damage, mod.GetIndex(), flags, angle.Degrees() };
|
||||
VMReturn ret;
|
||||
int retval;
|
||||
ret.IntAt(&retval);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue