mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-21 10:09:16 +01:00
use DrawObject instead of GetDrawObject
This commit is contained in:
parent
4c88e0e249
commit
c131561418
1 changed files with 2 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ public sealed class GameObjectHandler : DisposableMediatorSubscriberBase
|
||||||
{
|
{
|
||||||
if (curPtr != IntPtr.Zero)
|
if (curPtr != IntPtr.Zero)
|
||||||
{
|
{
|
||||||
var drawObjAddr = (IntPtr)((GameObject*)curPtr)->GetDrawObject();
|
var drawObjAddr = (IntPtr)((GameObject*)curPtr)->DrawObject;
|
||||||
drawObjDiff = drawObjAddr != DrawObjectAddress;
|
drawObjDiff = drawObjAddr != DrawObjectAddress;
|
||||||
DrawObjectAddress = drawObjAddr;
|
DrawObjectAddress = drawObjAddr;
|
||||||
}
|
}
|
||||||
|
|
@ -263,7 +263,7 @@ public sealed class GameObjectHandler : DisposableMediatorSubscriberBase
|
||||||
|
|
||||||
private unsafe IntPtr GetDrawObj(nint curPtr)
|
private unsafe IntPtr GetDrawObj(nint curPtr)
|
||||||
{
|
{
|
||||||
return (IntPtr)((GameObject*)curPtr)->GetDrawObject();
|
return (IntPtr)((GameObject*)curPtr)->DrawObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
private unsafe bool IsBeingDrawn(IntPtr drawObj, IntPtr curPtr)
|
private unsafe bool IsBeingDrawn(IntPtr drawObj, IntPtr curPtr)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue