Page 1 of 1

$char(hp,pct) reporting incorrectly (fixed in 03.12.24b)

Posted: Wed Dec 24, 2003 8:59 pm
by ml2517
Lax already knows about this and probably has it changed in the CVS but if you want to change your copy modify this section of MQ2Parms.cpp.

From this:

Code: Select all

	// $char(hp,pct)
    } else if (!strncmp("char(hp,pct)",szVar,12)) {
        i+=11;
        CHAR szTemp[MAX_STRING] = {0};
        itoa((INT)(GetCurHPS()/GetMaxHPS()),szTemp,10);
        strcat(szOutput,szTemp);
To this:

Code: Select all

	// $char(hp,pct)
    } else if (!strncmp("char(hp,pct)",szVar,12)) {
        i+=11;
        CHAR szTemp[MAX_STRING] = {0};
        itoa((INT)(GetCurHPS()*100/GetMaxHPS()),szTemp,10);
        strcat(szOutput,szTemp);

Posted: Wed Dec 24, 2003 9:55 pm
by ml2517
If you have the 24 December 16:00:23 Zip this isn't in there yet.