mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
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:
parent
52771ce630
commit
95d0fb4b13
3 changed files with 13 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue