forked from github/server
Crashfix PArteiliste
Crashfix Terraform auf undefinierter Region
This commit is contained in:
parent
00a6662043
commit
0320b078e5
|
@ -29,5 +29,6 @@ extern newfaction * newfactions;
|
||||||
|
|
||||||
extern void autoseed(struct regionlist * rlist);
|
extern void autoseed(struct regionlist * rlist);
|
||||||
extern void get_island(struct regionlist ** rlist);
|
extern void get_island(struct regionlist ** rlist);
|
||||||
|
extern void mkisland(int nsize);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -707,6 +707,7 @@ ParteiListe(void)
|
||||||
{
|
{
|
||||||
char fno[5];
|
char fno[5];
|
||||||
strncpy(fno, pointer->s, 4);
|
strncpy(fno, pointer->s, 4);
|
||||||
|
fno[4]=0;
|
||||||
ModifyPartei(findfaction(atoi36(fno)));
|
ModifyPartei(findfaction(atoi36(fno)));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -854,6 +854,7 @@ movearound(int rx, int ry) {
|
||||||
ch = -9; /* nur ein Redraw */
|
ch = -9; /* nur ein Redraw */
|
||||||
break;
|
break;
|
||||||
case 'T':
|
case 'T':
|
||||||
|
if (r==NULL) break;
|
||||||
if (!Tagged) {
|
if (!Tagged) {
|
||||||
if (hx>-1) {
|
if (hx>-1) {
|
||||||
int Rx,Ry;
|
int Rx,Ry;
|
||||||
|
@ -1602,6 +1603,8 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
sprintf(buf, "%s/newfactions.%d", basepath(), turn);
|
sprintf(buf, "%s/newfactions.%d", basepath(), turn);
|
||||||
read_newfactions(buf);
|
read_newfactions(buf);
|
||||||
|
sprintf(buf, "%s/newfactions", basepath());
|
||||||
|
read_newfactions(buf);
|
||||||
sprintf(buf, "%s/dropouts.%d", basepath(), turn);
|
sprintf(buf, "%s/dropouts.%d", basepath(), turn);
|
||||||
read_dropouts(buf);
|
read_dropouts(buf);
|
||||||
sprintf(buf, "%s/%s", basepath(), orderfile);
|
sprintf(buf, "%s/%s", basepath(), orderfile);
|
||||||
|
|
Loading…
Reference in New Issue