forked from github/server
argh. lomem settings falschrum
This commit is contained in:
parent
8fe61a96f4
commit
d86835900f
|
@ -469,10 +469,15 @@ b_validroad(const border * b)
|
||||||
static boolean
|
static boolean
|
||||||
b_rvisibleroad(const border * b, const region * r)
|
b_rvisibleroad(const border * b, const region * r)
|
||||||
{
|
{
|
||||||
int x = b->data.i;
|
int x = b->data.i;
|
||||||
x = (r==b->from)?b->data.sa[0]:b->data.sa[1];
|
x = (r==b->from)?b->data.sa[0]:b->data.sa[1];
|
||||||
if (x==0) return false;
|
if (x==0) {
|
||||||
return (boolean)(b->to==r || b->from==r);
|
return false;
|
||||||
|
}
|
||||||
|
if (b->to!=r && b->from!=r) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
border_type bt_road = {
|
border_type bt_road = {
|
||||||
|
|
|
@ -573,7 +573,7 @@ load_inifile(const char * filename)
|
||||||
if (d) {
|
if (d) {
|
||||||
const char * str;
|
const char * str;
|
||||||
|
|
||||||
lomem = iniparser_getint(d, "eressea:lomem", lomem)?0:1;
|
lomem = iniparser_getint(d, "eressea:lomem", lomem)?1:0;
|
||||||
quiet = iniparser_getint(d, "eressea:verbose", 0)?0:1;
|
quiet = iniparser_getint(d, "eressea:verbose", 0)?0:1;
|
||||||
str = iniparser_getstr(d, "eressea:run");
|
str = iniparser_getstr(d, "eressea:run");
|
||||||
if (str) luafile = str;
|
if (str) luafile = str;
|
||||||
|
|
Loading…
Reference in New Issue