mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Made small modifications to Anton Blanchard's pull request #120 to
use DBTypeLongNameTbl[] instead of DBTypeShortName() to print the names of the illegally overlapping types.
This commit is contained in:
+8
-4
@@ -541,8 +541,10 @@ extHierConnectFunc2(cum, ha)
|
||||
else if (r.r_xtop > r.r_xbot && r.r_ytop > r.r_ybot)
|
||||
{
|
||||
char message[1024];
|
||||
snprintf(message, sizeof(message), "Illegal overlap between %s and %s (types do not connect)",
|
||||
DBTypeShortName(ha->hierType), DBTypeShortName(ttype));
|
||||
|
||||
snprintf(message, sizeof(message),
|
||||
"Illegal overlap between %s and %s (types do not connect)",
|
||||
DBTypeLongNameTbl[ha->hierType], DBTypeLongNameTbl[ttype]);
|
||||
|
||||
extNumErrors++;
|
||||
if (!DebugIsSet(extDebugID, extDebNoFeedback))
|
||||
@@ -647,8 +649,10 @@ extHierConnectFunc3(cum, ha)
|
||||
else if (r.r_xtop > r.r_xbot && r.r_ytop > r.r_ybot)
|
||||
{
|
||||
char message[1024];
|
||||
snprintf(message, sizeof(message), "Illegal overlap between %s and %s (types do not connect)",
|
||||
DBTypeShortName(ha->hierType), DBTypeShortName(ttype));
|
||||
|
||||
snprintf(message, sizeof(message),
|
||||
"Illegal overlap between %s and %s (types do not connect)",
|
||||
DBTypeLongNameTbl[ha->hierType], DBTypeLongNameTbl[ttype]);
|
||||
|
||||
extNumErrors++;
|
||||
if (!DebugIsSet(extDebugID, extDebNoFeedback))
|
||||
|
||||
Reference in New Issue
Block a user