Commit 892b9083 authored by rswindell's avatar rswindell
Browse files

Fix cosmetic error introduced in previous commit: use the correct attribute

code for the size/credit value.
parent fe36e759
......@@ -434,6 +434,7 @@ bool sbbs_t::listfile(const char *fname, const char *buf, uint dirnum
int i,j;
ulong cdt;
off_t size;
int size_attr=clr_filecdt;
if(buf[F_MISC]!=ETX && (buf[F_MISC]-' ')&FM_EXTDESC && useron.misc&EXTDESC) {
getextdesc(&cfg,dirnum,datoffset,ext);
......@@ -466,13 +467,12 @@ bool sbbs_t::listfile(const char *fname, const char *buf, uint dirnum
if(cfg.dir[dirnum]->misc&DIR_FCHK) {
if(!fexistcase(path)) {
exist=0;
attr(cfg.color[clr_err]);
size_attr = clr_err;
}
else if((cfg.dir[dirnum]->misc&DIR_FREE) && (size=flength(path)) >= 0)
cdt = size;
}
else
attr(cfg.color[clr_filecdt]);
attr(cfg.color[size_attr]);
if(useron.misc&BATCHFLAG) {
if(!cdt && !(cfg.dir[dirnum]->misc&DIR_FREE)) {
attr(curatr^(HIGH|BLINK));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment