optimization

This commit is contained in:
Ianos Gnatiuc 2005-11-22 07:50:12 +00:00
parent ebd238ef7d
commit bcd2accbd1
3 changed files with 6 additions and 9 deletions

View File

@ -423,7 +423,7 @@ void CmfMsgs(GMsg* msg, bool torecycle)
destarea = AL.AreaNoToId(a); destarea = AL.AreaNoToId(a);
} }
if (cmf == MODE_FORWARD ? not AA->Areaforwarddirect() : not AA->Areacopydirect()) if (!torecycle && (cmf == MODE_FORWARD ? not AA->Areaforwarddirect() : not AA->Areacopydirect()))
destarea = AreaPick(pickstr, 6, &destarea); destarea = AreaPick(pickstr, 6, &destarea);
if(destarea == -1) { if(destarea == -1) {

View File

@ -209,12 +209,9 @@ void GMsgList::ReadMlst(int n) {
strcpy(ml->to, msg.To()); strcpy(ml->to, msg.To());
strcpy(ml->re, msg.re); strcpy(ml->re, msg.re);
{ Addr zero;
ml->colorby = GetColorName(ml->by, msg.orig, -1); ml->colorby = GetColorName(ml->by, msg.orig, -1);
if(AA->isnet()) ml->colorto = GetColorName(ml->to, AA->isnet() ? msg.dest : zero, -1);
ml->colorto = GetColorName(ml->to, msg.dest, -1);
else
{ Addr a;
ml->colorto = GetColorName(ml->to, a, -1);
} }
} }

View File

@ -257,8 +257,8 @@ void GMsgHeaderView::Paint() {
window.prints(3, 0, window_color, LNG->To); window.prints(3, 0, window_color, LNG->To);
color = ((msg->foundwhere&GFIND_TO) or msg->attr.tou()) ? highlight_color : to_color; color = ((msg->foundwhere&GFIND_TO) or msg->attr.tou()) ? highlight_color : to_color;
{ Addr a; { Addr zero;
color = GetColorName(msg->To(), area->isnet() ? msg->dest : a, color); color = GetColorName(msg->To(), area->isnet() ? msg->dest : zero, color);
} }
window.prints(3, CFG->disphdrnameset.pos, color, buf); window.prints(3, CFG->disphdrnameset.pos, color, buf);