New upstream version of builtins.txt; minor fix

Add comment to llGetStatus and make it more future-proof by adding unused flags.
This commit is contained in:
Sei Lisa 2022-08-26 12:48:30 +02:00
parent 52771ce630
commit 95d0fb4b13
3 changed files with 13 additions and 3 deletions

View file

@ -332,8 +332,11 @@ def llGetOwnerKey(id):
raise ELSLCantCompute
def llGetStatus(mask):
# leave out STATUS_DIE_AT_EDGE and STATUS_CAST_SHADOWS
if (mask & 0b10101111111) == 0:
# Leave out STATUS_DIE_AT_EDGE, _DIE_AT_NO_ENTRY and _CAST_SHADOWS.
# For some reason, llGetStatus(STATUS_DIE_AT_EDGE) does not return the
# actual value of whether the flag is set or not for the object. Same for
# STATUS_DIE_AT_NO_ENTRY. STATUS_CAST_SHADOWS is unused so that's normal.
if (mask & ~(0x800|0x200|0x80)) == 0:
return 0
raise ELSLCantCompute