by Fishytza » Mon Aug 10, 2015 12:35 am
I'm sorry, but could you tell me why you linked me to the A_TransferPointer page? I was talking about A_SpawnItemEx specifically.
I also realized something even more dangerous: what if both calling actor and spawning actor are missiles and you specify SXF_SETTARGET|SXF_ISTARGET?
But back to the page you linked, is this what you wanted me to read?:
A_TransferPointer page wrote:By default MASTER and TARGET become null if values are assigned that would cause infinite relationships. (Missiles targeting each other, masters mastering each other.)
The following flags can manipulate and disable the safe guards to allow for more complex relationships:
PTROP_UNSAFETARGET (1) - Don't null assignments that result in an infinite chain of missiles referencing each other
PTROP_UNSAFEMASTER (2) - Don't null assignments that result in an infinite chain of actors referencing each other
PTROP_NOSAFEGUARDS (4) - Same as putting in PTROP_UNSAFETARGET|PTROP_UNSAFEMASTER, or 3 (3 and 4 do the same thing, which is redundant).
IIRC A_SpawnItemEx doesn't have such safety checks.
I'm sorry, but could you tell me why you linked me to the A_TransferPointer page? I was talking about A_SpawnItemEx specifically.
I also realized something even more dangerous: what if both calling actor and spawning actor are missiles and you specify SXF_SETTARGET|SXF_ISTARGET?
But back to the page you linked, is this what you wanted me to read?:
[quote="A_TransferPointer page"]By default MASTER and TARGET become null if values are assigned that would cause infinite relationships. (Missiles targeting each other, masters mastering each other.)
The following flags can manipulate and disable the safe guards to allow for more complex relationships:
PTROP_UNSAFETARGET (1) - Don't null assignments that result in an infinite chain of missiles referencing each other
PTROP_UNSAFEMASTER (2) - Don't null assignments that result in an infinite chain of actors referencing each other
PTROP_NOSAFEGUARDS (4) - Same as putting in PTROP_UNSAFETARGET|PTROP_UNSAFEMASTER, or 3 (3 and 4 do the same thing, which is redundant).[/quote]
IIRC A_SpawnItemEx doesn't have such safety checks.