Fixed small bug in RCV attribute setting (or not fixed ;-))
This commit is contained in:
parent
3c1c87657f
commit
626473f69f
@ -37,7 +37,7 @@ EXEEXT=.exe
|
||||
OBJEXT=.o
|
||||
LIBEXT=.a
|
||||
else
|
||||
CC=egcc
|
||||
CC=gcc
|
||||
CXX=g++
|
||||
AR=ar
|
||||
PLATFORM=lnx
|
||||
@ -47,8 +47,8 @@ LIBEXT=.a
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2# -fomit-frame-pointer
|
||||
LNKFLAGS+=-g
|
||||
CFLAGS+=-s -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2# -fomit-frame-pointer
|
||||
LNKFLAGS+=-s
|
||||
CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti
|
||||
|
||||
# comment following lines if you dislike ncurses
|
||||
|
@ -68,7 +68,7 @@ clean:
|
||||
|
||||
ifeq ($(FDEPPATH)/dep,$(wildcard $(FDEPPATH)/de?))
|
||||
ifneq ($(DEPS),)
|
||||
include $(DEPS)
|
||||
-include $(DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -924,8 +924,15 @@ int LoadMessage(GMsg* msg, int margin) {
|
||||
// Update the "Times Read" field
|
||||
msg->orig_timesread = msg->timesread++;
|
||||
|
||||
if(reader_rcv_noise > 1)
|
||||
AA->SaveHdr(GMSG_UPDATE, msg);
|
||||
if(reader_rcv_noise > 1) {
|
||||
GMsg* tmsg = throw_calloc(1, sizeof(GMsg));
|
||||
AA->LoadHdr(tmsg, msg->msgno);
|
||||
tmsg->attr = msg->attr;
|
||||
tmsg->orig_timesread = msg->orig_timesread;
|
||||
tmsg->received = msg->received;
|
||||
AA->SaveHdr(GMSG_UPDATE, tmsg);
|
||||
throw_free(tmsg);
|
||||
}
|
||||
|
||||
msg->attr.upd0();
|
||||
|
||||
|
Reference in New Issue
Block a user