rheit/zdoom — pull request #112 by fdari (2014-09-28 10:11:16+00:00)
Title: Is pointer equal

Decorate: IsPointerEqual(int aaptr_selector1, int aaptr_selector2)

Compare the pointers values returned by two pointer select operations.
Returns true if they both resolve to the same value.
Null values can be explicitly tested using IsPointerEqual(AAPTR_NULL, ...)

ACS: IsPointerEqual(int aaptr1, int aaptr2, int tid1 = 0, int tid2 = 0)

This function lets you compare pointers from other actors than the activator, using tids.
Tid1 determines the actor used to resolve aaptr1, Tid2 does the same for aaptr2.
If tid1 and tid2 are equal, the same actor will be used for resolving both pointers
(that could always happen randomly; this way you know it will happen).