forked from github/server
Reduzierung von doppelten Messages beim merge von CRs. Wyrm-Funkction wird nict auf älteren Datenfiles ausgeführt
This commit is contained in:
parent
db8340648c
commit
d1cb08df6e
|
@ -455,7 +455,7 @@ render_messages(FILE * F, faction * f, message_list *msgs)
|
|||
char nrbuffer[1024*32];
|
||||
nrbuffer[0] = '\0';
|
||||
if (nr_render(m->msg, f->locale, nrbuffer, sizeof(nrbuffer), f)==0 && nrbuffer[0]) {
|
||||
fprintf(F, "MESSAGE %d\n", ++msgno);
|
||||
fprintf(F, "MESSAGE %u\n", (unsigned int)m->msg);/*++msgno); */
|
||||
fprintf(F, "%d;type\n", hash);
|
||||
fputs("\"", F);
|
||||
fputs(nrbuffer, F);
|
||||
|
@ -465,7 +465,7 @@ render_messages(FILE * F, faction * f, message_list *msgs)
|
|||
#endif
|
||||
crbuffer[0] = '\0';
|
||||
if (cr_render(m->msg, crbuffer, (const void*)f)==0) {
|
||||
if (!printed) fprintf(F, "MESSAGE %d\n", ++msgno);
|
||||
if (!printed) fprintf(F, "MESSAGE %u\n", (unsigned int)m->msg);/*++msgno); */
|
||||
if (crbuffer[0]) fputs(crbuffer, F);
|
||||
} else {
|
||||
log_error(("could not render cr-message %p: %s\n", m->msg, m->msg->type->name));
|
||||
|
|
|
@ -6,7 +6,7 @@ function teleport_all(map, grave)
|
|||
local u
|
||||
for u in r.units do
|
||||
u.region = grave
|
||||
print (" .teleported " .. u)
|
||||
print (" .teleported " .. u.name)
|
||||
grave:add_notice("Ein Portal öffnet sich, und " .. u.name .. " erscheint in " .. grave.name)
|
||||
end
|
||||
end
|
||||
|
@ -97,7 +97,9 @@ function process(orders)
|
|||
process_orders()
|
||||
|
||||
-- igjarjuk special
|
||||
if get_turn() > 374 then
|
||||
wyrm()
|
||||
end
|
||||
|
||||
write_passwords()
|
||||
write_reports()
|
||||
|
|
Loading…
Reference in New Issue