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
|
OBJEXT=.o
|
||||||
LIBEXT=.a
|
LIBEXT=.a
|
||||||
else
|
else
|
||||||
CC=egcc
|
CC=gcc
|
||||||
CXX=g++
|
CXX=g++
|
||||||
AR=ar
|
AR=ar
|
||||||
PLATFORM=lnx
|
PLATFORM=lnx
|
||||||
@ -47,8 +47,8 @@ LIBEXT=.a
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2# -fomit-frame-pointer
|
CFLAGS+=-s -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2# -fomit-frame-pointer
|
||||||
LNKFLAGS+=-g
|
LNKFLAGS+=-s
|
||||||
CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti
|
CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti
|
||||||
|
|
||||||
# comment following lines if you dislike ncurses
|
# comment following lines if you dislike ncurses
|
||||||
|
@ -68,7 +68,7 @@ clean:
|
|||||||
|
|
||||||
ifeq ($(FDEPPATH)/dep,$(wildcard $(FDEPPATH)/de?))
|
ifeq ($(FDEPPATH)/dep,$(wildcard $(FDEPPATH)/de?))
|
||||||
ifneq ($(DEPS),)
|
ifneq ($(DEPS),)
|
||||||
include $(DEPS)
|
-include $(DEPS)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -924,8 +924,15 @@ int LoadMessage(GMsg* msg, int margin) {
|
|||||||
// Update the "Times Read" field
|
// Update the "Times Read" field
|
||||||
msg->orig_timesread = msg->timesread++;
|
msg->orig_timesread = msg->timesread++;
|
||||||
|
|
||||||
if(reader_rcv_noise > 1)
|
if(reader_rcv_noise > 1) {
|
||||||
AA->SaveHdr(GMSG_UPDATE, msg);
|
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();
|
msg->attr.upd0();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user