Actions
Bug #620
closedBob command now fails with type mismatch error even when all parameters are integer.
Start date:
01/19/2021
Due date:
% Done:
0%
Estimated time:
4:00 h
Affected version:
Description
It doesn't matter whether the paramaters are integers or floating point numbers.
NOTE: While you're working on this, we need to change bobs so the parameters for X and Y can be decimals.
This is perfectly valid in JavaScript, DOM, etc., and is necessary for certain precision operations!
The was tested in the newest Beta 2 version (not yet released).
Example: These lines, from ASCII MAN Reloaded V1.3, uses ALL integer parameters, yet still cause type mismatch errors:
Bob 15, SCRXOFF + 275, i, 99 ' Line 614
Bob 20, SCRXOFF + PCX + (PX * MAPCELLWIDTH), SCRYOFF + PCY + (PY * MAPCELLHIGHT), f ' line 636
Bob i + 10, SCRXOFF + GHOSTCX(i) + (GHOSTX(i) * MAPCELLWIDTH), SCRYOFF + GHOSTCY(i) + (GHOSTY(i) * MAPCELLHIGHT), GF ' Line 1151
Bob 14, SCRXOFF + (BONUSX * MAPCELLWIDTH), SCRYOFF + (BONUSY * MAPCELLHIGHT), BONUSIMG(MIN(LEVEL, 13)) ' Line 1300
Bob 20, SCRXOFF + PCX + (PX * MAPCELLWIDTH), SCRYOFF + PCY + (PY * MAPCELLHIGHT), PFA ' Line 1654
Actions