Typo in $char parser

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

Moderator: MacroQuest Developers

Sharp of Fairlight
VIP=Very Impressive Pimpin'
Posts: 108
Joined: Wed Oct 29, 2003 3:54 pm
Location: Sweden

Typo in $char parser

Post by Sharp of Fairlight » Wed Nov 05, 2003 5:33 pm

or rather going too fast when copy/pasting
// $char(guild)
} else if (!strncmp("target(guild)",szVar,11)) {
i+=10;
if (GetCharInfo()->pSpawn->GuildID < 0xFFFE && EQADDR_GUILDLIST) {
strcat(szOutput,GetGuildByID(GetCharInfo()->pSpawn->GuildID));
} else {
strcat(szOutput,"NULL");
}

// $char(guild,status)
} else if (!strncmp("target(guild,status)",szVar,18)) {
i+=17;
if (GetCharInfo()->pSpawn->GuildID < 0xFFFE && EQADDR_GUILDLIST) {
strcat(szOutput,szGuildStatus[GetCharInfo()->pSpawn->GuildStatus]);
} else {
strcat(szOutput,"NULL");
}
No wonder $char(guild) didnt work for me.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Wed Nov 05, 2003 5:36 pm

Typo doesn't exist in the dev CVS, must have found it's way into the zip file from an unchecked source.
MQ2: Think of it as Evolution in action.

Sharp of Fairlight
VIP=Very Impressive Pimpin'
Posts: 108
Joined: Wed Oct 29, 2003 3:54 pm
Location: Sweden

Post by Sharp of Fairlight » Wed Nov 05, 2003 5:42 pm

Maybe been fixed already then. Looks like Plazmic been doing things there recently.

http://macroquest2.com/phpBB2/viewtopic.php?t=3785

Edit: Typo still in the zip from the 6th.

Sharp of Fairlight
VIP=Very Impressive Pimpin'
Posts: 108
Joined: Wed Oct 29, 2003 3:54 pm
Location: Sweden

Post by Sharp of Fairlight » Sat Nov 08, 2003 5:59 pm

Still in Zip and CVS on the 8th. Wouldn't have reposted it normally, but read that Dev CVS is 24 hours before public CVS so should be in Dev CVS also or am i completely off here?

Mckorr: You sure you checked the if statement and not the comment? ;)