diff options
Diffstat (limited to 'npc/functions/bitwise.txt')
-rw-r--r-- | npc/functions/bitwise.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/bitwise.txt b/npc/functions/bitwise.txt index fb9b1493c..fd80024ef 100644 --- a/npc/functions/bitwise.txt +++ b/npc/functions/bitwise.txt @@ -116,7 +116,7 @@ function script get_byte { function script get_bitword { .@v=getarg(0); - return bitwise_get(.@v, 0x7FFF800, 11); + return bitwise_get(.@v, 0xFFFF, 0); } ///////////////////////////////////////////////////////////////////////////////// @@ -171,6 +171,6 @@ function script set_byte { function script set_bitword { .@v=getarg(0); - return bitwise_set(.@v, 0x7FFF800, 11, getarg(1)); + return bitwise_set(.@v, 0xFFFF, 0, getarg(1)); } |