$char(hp,pct) reporting incorrectly (fixed in 03.12.24b)
Posted: Wed Dec 24, 2003 8:59 pm
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:
To this:
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);
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);