<email deleted>
> I'm working on a Nethack port, and one of the header files a > library uses has a structure with a member named "red". Since > includes/decl.h #defines red to something, this totally loses. > > Attached is a patch which fixes the color defines.
This commit is contained in:
@@ -1571,7 +1571,7 @@ dodip()
|
||||
pline("%s %s %s.",
|
||||
Your_buf,
|
||||
aobjnam(obj, "softly glow"),
|
||||
hcolor(amber));
|
||||
hcolor(NH_AMBER));
|
||||
uncurse(obj);
|
||||
obj->bknown=1;
|
||||
poof:
|
||||
@@ -1582,7 +1582,7 @@ dodip()
|
||||
return(1);
|
||||
} else if(!obj->blessed) {
|
||||
if (useeit) {
|
||||
tmp = hcolor(light_blue);
|
||||
tmp = hcolor(NH_LIGHT_BLUE);
|
||||
pline("%s %s with a%s %s aura.",
|
||||
Your_buf,
|
||||
aobjnam(obj, "softly glow"),
|
||||
@@ -1604,7 +1604,7 @@ dodip()
|
||||
goto poof;
|
||||
} else if(!obj->cursed) {
|
||||
if (useeit) {
|
||||
tmp = hcolor(Black);
|
||||
tmp = hcolor(NH_BLACK);
|
||||
pline("%s %s with a%s %s aura.",
|
||||
Your_buf,
|
||||
aobjnam(obj, "glow"),
|
||||
|
||||
Reference in New Issue
Block a user