Bug report for $int()

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

Zxeses
a ghoul
a ghoul
Posts: 103
Joined: Tue Jan 07, 2003 4:17 pm

Bug report for $int()

Post by Zxeses » Mon Aug 25, 2003 12:02 pm

/echo $int(1) (this is for example only)
results in 1


The Bug:

/echo $int($char(speed))

results in junk

If I'm standing still, my $char(speed) should be 0.00, and $int() should change that to just 0

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Mon Aug 25, 2003 9:26 pm

Interesting. $char(speed) eats a character. I'll get onto fixing that when I get a chance... meanwhile, try $int($char(speed) ) (note the space) or add an extra ) on the end...

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Mon Aug 25, 2003 10:02 pm

===================================================================
RCS file: /cvsroot/macroquest/macroquest/EQLib/EQLib_MacroParser.cpp,v
retrieving revision 1.14
diff -r1.14 EQLib_MacroParser.cpp
1957c1957
< i+=11;
---
> i+=10;

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Mon Aug 25, 2003 11:41 pm

yeah, that... was way too tired to think of code when I responded to this.. heh.