Use ef_blank() when extending news file

The call of ef_ensure_space() serves no purpose: the blank records it
adds are ignored on read, and overwritten (not updated) by new news.
Get rid of it.
This commit is contained in:
Markus Armbruster 2008-02-24 19:02:43 +01:00
parent da2a0c5ef2
commit 7dafbada4e

View file

@ -184,12 +184,12 @@ ncache(int actor, int event, int victim, int times)
if (CANT_HAPPEN(!strstr(rpt[event].r_newstory[0], "%s") && victim != 0)) if (CANT_HAPPEN(!strstr(rpt[event].r_newstory[0], "%s") && victim != 0))
victim = 0; victim = 0;
np = &cache[actor][oldslot]; np = &cache[actor][oldslot];
ef_blank(EF_NEWS, news_tail, &np->news);
np->news.nws_ano = actor; np->news.nws_ano = actor;
np->news.nws_vno = victim; np->news.nws_vno = victim;
np->news.nws_when = now; np->news.nws_when = now;
np->news.nws_vrb = event; np->news.nws_vrb = event;
np->news.nws_ntm = times; np->news.nws_ntm = times;
ef_ensure_space(EF_NEWS, news_tail, 100);
np->id = news_tail++; np->id = news_tail++;
return np; return np;
} }