argh. lomem settings falschrum

This commit is contained in:
Enno Rehling 2007-02-18 10:32:39 +00:00
parent 8fe61a96f4
commit d86835900f
2 changed files with 9 additions and 4 deletions

View File

@ -471,8 +471,13 @@ b_rvisibleroad(const border * b, const region * r)
{
int x = b->data.i;
x = (r==b->from)?b->data.sa[0]:b->data.sa[1];
if (x==0) return false;
return (boolean)(b->to==r || b->from==r);
if (x==0) {
return false;
}
if (b->to!=r && b->from!=r) {
return false;
}
return true;
}
border_type bt_road = {

View File

@ -573,7 +573,7 @@ load_inifile(const char * filename)
if (d) {
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;
str = iniparser_getstr(d, "eressea:run");
if (str) luafile = str;