Moderator: MacroQuest Developers

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

Code: Select all
pSpawnClosest = &LocSpawn;
strcpy_s(LocSpawn.Name, "location");
if ((szFilter[0] == 0) || (!strstr(szFilter, ","))) {
MacroError("Face: loc specified but <y>,<x> not found.");
return;
}
pSpawnClosest->Y = (FLOAT)atof(szFilter);
while ((szFilter[0] != ',') && (szFilter[0] != 0)) szFilter++;
if (szFilter[0] == 0) {
MacroError("Face: loc specified but <y>,<x> not found.");
return;
}
szFilter++;
pSpawnClosest->X = (FLOAT)atof(szFilter);
Code: Select all
pSpawnClosest = &LocSpawn;
strcpy_s(LocSpawn.Name, "location");
if ((szFilter[0] == 0) || (!strstr(szFilter, ","))) {
MacroError("Face: loc specified but <y>,<x> not found.");
return;
}
pSpawnClosest->Y = (FLOAT)atof(szFilter);
while ((szFilter[0] != ',') && (szFilter[0] != 0)) szFilter++;
if (szFilter[0] == 0) {
MacroError("Face: loc specified but <y>,<x> not found.");
return;
}
szFilter++;
pSpawnClosest->X = (FLOAT)atof(szFilter);
while ((szFilter[0] != ',') && (szFilter[0] != 0)) szFilter++;
if (szFilter[0] != 0) {
szFilter++;
pSpawnClosest->Z = (FLOAT)atof(szFilter);
}
dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

It will if someone can test it for me.MacQ wrote:This looks to be a nice addition to MQ, hope to see it in a future release.
dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...