Tornado
Member
On some places switch...case... statements DON'T WORK when compiled with YYC.
At least on Android YYC and Windows YYC. We didn't try other platforms.
So far it happend in HTTP Async Event and in Animation End Event. Who knows where else!
The comparison in some "case"-clauses simply doesn't work. For example both variables in "switch" and in "case" have value 2, but for some reason 2 doesn't equal 2!
It happens only for YYC, for VM is ok.
Here is the sample project if you want to try:
https://www.dropbox.com/s/hflft5o2d2sosd7/WrongCase.zip?dl=0
When you build with VM then you get this:
So everything works as expected.
When you build with YYC you get this:
So for YYC, in the switch-case 2 doesn't equal 2, so we land in the "default" clause!
The bug has been reported to Yoyo minutes ago.
We use latest GMS, IDE v2.3.1.542, runtime v2.3.1.409.
At least on Android YYC and Windows YYC. We didn't try other platforms.
So far it happend in HTTP Async Event and in Animation End Event. Who knows where else!
The comparison in some "case"-clauses simply doesn't work. For example both variables in "switch" and in "case" have value 2, but for some reason 2 doesn't equal 2!
It happens only for YYC, for VM is ok.
Here is the sample project if you want to try:
https://www.dropbox.com/s/hflft5o2d2sosd7/WrongCase.zip?dl=0
When you build with VM then you get this:
So everything works as expected.
When you build with YYC you get this:
So for YYC, in the switch-case 2 doesn't equal 2, so we land in the "default" clause!
The bug has been reported to Yoyo minutes ago.
We use latest GMS, IDE v2.3.1.542, runtime v2.3.1.409.