I just found a bug by Enterbrain that nobody has ever found before. If you try to create a Bitmap instance with width > 0 and height != 0, it will use the absolute value of the height instead of crashing for values <= 0 (it still crashes with height = 0, though)! :O
Awesome, nice find!
I wouldn't have found it usually. I was trying to get CP running on ARC, but it would always crash when it's supposed to start a battle. I had to figure out what was going so after some time I found out that the height value was negative when the Bitmap was created. I ran it in RMXP and it worked fine. Then I found out that the negative value actually works which I then confirmed by trying this:
b = Bitmap.new(16, -32) # does not crash
p b.height # prints 32
Oh! That is interesting! Wait to go Enterbrain.
Hang on, Enterbrain did something unneeded and cool?
I have no clue what this is about.
Its really not cool. It hides possible errors in your scripts.
Like that one script in CP where I found the error originally. >:|
Well, if it wasn't picked up earlier then obviously it wasn't a noticeable or big error.