SRL Archive - Bugs

Wait


weequ

2010-09-24 09:32:27

Simba goes to an infinite loop if you do like Wait(-200); (Scar does not)

Since you can't really go back in time(atleast I think so) Wait(-200) should mean same as Wait(0);

I get this this problem with stuff like this:
Wait(55+Random(40)-(GetSystemTime-T));

and I fixed it like this: (So that no-one comes saying: "why the hell would you put wait(-200)?!" )

Wait(Max((55+Random(40)-(GetSystemTime-T)), 0));


I think there is same problem in sleep(time: Integer);

Wizzup?

2010-09-24 09:56:18

Nice find. I don't think it should just do a Wait(0); though. It's invalid input and IMO an exception should be raised. Doing a Wait(0) is just deceiving the programmer.

BenLand100

2010-09-24 10:02:37

But wait(0) takes more time than nothing, and wait(1) takes significantly more time! :P

weequ

2010-09-24 11:51:39

From: BenLand100
But wait(0) takes more time than nothing, and wait(1) takes significantly more time! :P
:spot:


@Wizzup? That's a good idea.

Nava2

2010-09-24 16:08:20

wait(16)!

Wizzup?

2011-01-09 09:13:04

Fixed. (not in 0.95RC, but will be in 0.96)