forked from github/server
parent
a14379cb91
commit
1bcb841fcb
|
@ -244,6 +244,6 @@ extern char * strdup(const char *s);
|
||||||
#ifdef STRNCPY_HAS_ZEROTERMINATION
|
#ifdef STRNCPY_HAS_ZEROTERMINATION
|
||||||
# define strnzcpy(dst, src, len) strncpy(dst, src, len)
|
# define strnzcpy(dst, src, len) strncpy(dst, src, len)
|
||||||
#else
|
#else
|
||||||
# define strnzcpy(dst, src, len) for(;;) { strncpy(dst, src, len); if (len) dst[len-1]=0; break; }
|
# define strnzcpy(dst, src, len) (strncpy(dst, src, len), len?dst[len-1]=0:0, dst)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2647,24 +2647,15 @@ fix_astralplane(void)
|
||||||
static int
|
static int
|
||||||
fix_watchers(void)
|
fix_watchers(void)
|
||||||
{
|
{
|
||||||
plane * p = getplanebyid (59034966);
|
plane * p = getplanebyid (1094969858);
|
||||||
if (p) {
|
if (p) {
|
||||||
faction * f = findfaction(atoi36("gm04"));
|
faction * f = findfaction(atoi36("rega"));
|
||||||
watcher * w = calloc(sizeof(watcher), 1);
|
watcher * w = calloc(sizeof(watcher), 1);
|
||||||
w->faction = f;
|
w->faction = f;
|
||||||
w->mode = see_unit;
|
w->mode = see_unit;
|
||||||
w->next = p->watchers;
|
w->next = p->watchers;
|
||||||
p->watchers = w;
|
p->watchers = w;
|
||||||
}
|
}
|
||||||
p = getplanebyid(1137);
|
|
||||||
if (p) {
|
|
||||||
faction * f = findfaction(atoi36("rr"));
|
|
||||||
watcher * w = calloc(sizeof(watcher), 1);
|
|
||||||
w->faction = f;
|
|
||||||
w->mode = see_unit;
|
|
||||||
w->next = p->watchers;
|
|
||||||
p->watchers = w;
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2752,7 +2743,7 @@ korrektur(void)
|
||||||
/* fix_unitrefs(); */
|
/* fix_unitrefs(); */
|
||||||
stats();
|
stats();
|
||||||
do_once("sql2", dump_sql());
|
do_once("sql2", dump_sql());
|
||||||
do_once("fw01", fix_watchers());
|
do_once("fw02", fix_watchers());
|
||||||
do_once("fxh2", fix_plainherbs());
|
do_once("fxh2", fix_plainherbs());
|
||||||
#if NEW_RESOURCEGROWTH
|
#if NEW_RESOURCEGROWTH
|
||||||
/* do not remove do_once calls - old datafiles need them! */
|
/* do not remove do_once calls - old datafiles need them! */
|
||||||
|
|
Loading…
Reference in New Issue