Project

General

Profile

Bug #620

Bob command now fails with type mismatch error even when all parameters are integer.

Added by Brian Flanagan about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
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
#1

Updated by Francois Lionet about 3 years ago

  • Status changed from New to Resolved
  • Assignee set to Francois Lionet
  • Target version set to Beta 3

Fixed!

#2

Updated by Brian Flanagan almost 3 years ago

  • Status changed from Resolved to Closed

Re-tested in 1.0.0 (B8) u15
Verified working!

Also available in: Atom PDF