putmsghistory() (trunk only)
[Third of three message history patches.]
Add another argument to putmsghistory() so that it can tell whether
it's processing multiple messages for restore (which should be treated as
being older than any current messages) or a single message to stuff into
history (which should be treated as the most recent message even though
it hasn't been displayed in the message window).
This commit is contained in:
@@ -1152,10 +1152,10 @@ register int fd;
|
||||
panic("restore_msghistory: msg too big (%d)", msgsize);
|
||||
mread(fd, (genericptr_t)msg, msgsize);
|
||||
msg[msgsize] = '\0';
|
||||
putmsghistory(msg);
|
||||
putmsghistory(msg, TRUE);
|
||||
++msgcount;
|
||||
}
|
||||
if (msgcount) putmsghistory((char *)0);
|
||||
if (msgcount) putmsghistory((char *)0, TRUE);
|
||||
#ifdef DEBUG_MSGCOUNT
|
||||
pline("Read %d messages from savefile.", msgcount);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user