Found this today trying to update my Arkanoid-style map. If you try to compute the tangent of 90 or 270 degrees, it actually crashes the SC2 client. This is kind of surprising, since other "divide by zero" situations just print a debug message on the screen and otherwise keep running.
I've reported this bug to Blizzard, so hopefully it will get squashed before the end of beta. In the mean time, this is something to watch out for if you've got some math in your map.
i just did some pseudo code out of the a bit weird old topic ^^
but yea mathematically it should be tan(90°) v tan(270°) or tan(90°) || tan(270°), but as Galaxy can't handle it either as i guess it will not do something like LUA did it's not a big deal :P
@ashgad: Go
Doesn't the fixed real variable prevent you from having an exact value of 90 or 270? If you set a real to 90 or 270 and then get the tangent of that, would it still divide by zero?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Found this today trying to update my Arkanoid-style map. If you try to compute the tangent of 90 or 270 degrees, it actually crashes the SC2 client. This is kind of surprising, since other "divide by zero" situations just print a debug message on the screen and otherwise keep running.
I've reported this bug to Blizzard, so hopefully it will get squashed before the end of beta. In the mean time, this is something to watch out for if you've got some math in your map.
@ashgad: Go
Should be in bug reports or something called like that... Thanks for pointing it out, tho! :)
shouldnt u be doing tan(90) || tan(270) ?
mah ... ppl know what is ment :x
i just did some pseudo code out of the a bit weird old topic ^^
but yea mathematically it should be tan(90°) v tan(270°) or tan(90°) || tan(270°), but as Galaxy can't handle it either as i guess it will not do something like LUA did it's not a big deal :P
My mistake... thanks for moving this to the right place.
@ashgad: Go Doesn't the fixed real variable prevent you from having an exact value of 90 or 270? If you set a real to 90 or 270 and then get the tangent of that, would it still divide by zero?