elnewfie / lslforge

Automatically exported from code.google.com/p/lslforge
24 stars 13 forks source link

LSLforge optimizes away CHANGED_REGION_START #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The following code is used in the "magic box" serve for a networked vendor 
system I have under development:

    changed(integer change) {
        if(change & CHANGED_OWNER) {
            llResetScript();
        }
        if(change & CHANGED_REGION_START) {
            state getURL;
        }
    }

However, the LSLforge optimizer seems to fail to recognize the 
CHANGED_REGION_START constant, so the output of that event block is as follows:

    changed(integer change) {
        if ((change & 128)) {
            llResetScript();
        }
    }

Or in short, the check for a region restart has been removed, which breaks 
networking for my vendors and results in delivery failures because the vendors 
are unable to communicate product purchases to the server.

Original issue reported on code.google.com by ZauberEx...@gmail.com on 18 Jun 2014 at 9:57

GoogleCodeExporter commented 9 years ago
Further info, this is with the latest version of LSLforge, for 64bit Linux, on 
Eclipse 4.3.2, build ID 20140224-0627

Original comment by ZauberEx...@gmail.com on 18 Jun 2014 at 10:14

GoogleCodeExporter commented 9 years ago
I retract this bug report, nothing was going on, I just happened to read the 
wrong state.

Original comment by ZauberEx...@gmail.com on 18 Jun 2014 at 10:19