Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Bug - this time with jumps

Madox Kobayashi
Madox Labs R&D
Join date: 28 Jun 2003
Posts: 402
07-13-2003 18:44
Heh - not a day goes by when I am not posting about a possible bug I think :p

This time, I have a script that does a lot of notecard reading, parsing and handling commands. Once a command is handled I jump to the end of the handling function (rather than have a ton of if-else nests).

And example of pseudocode is:


if (command1) {
handle it
} else if (connand2) {
handle it
}

if (it was handled) {
jump end;
}

do stuff
//do bad stuff

@end;


The bug is - if I uncomment the 'do bad stuff', it causes the jump to end to not jump. The jump still gets hit, but it just doesn't jump.

I know it is not a lot to go on, but has anyone else noticed this? My script is very big and complex and isolating just what the 'bad stuff' is has proven to be difficult. I think the size of the scipt is a factor. Attempts to make a small example havnt reproduced teh bug
_____________________
Madox Kobayashi

Bino Arbuckle
Registered User
Join date: 31 Dec 2002
Posts: 369
07-14-2003 20:23
Is the "do bad stuff" supposed to only happen if you haven't handled the command? If so, you need an else statement to match that 3rd if.

HTH.