Merge pull request #204 from badgerman/issue-203-no_terrain_id

kill some invalid log spam
This commit is contained in:
Enno Rehling 2015-05-22 15:44:52 +02:00
commit 16dead2626
2 changed files with 1 additions and 2 deletions

View File

@ -58,7 +58,6 @@
<order name="tax" disable="yes"/>
<order name="entertain" disable="yes"/>
<order name="sell" disable="yes"/>
<order name="origin" disable="no"/>
<skill name="armorer" enable="true"/>
<skill name="bow" enable="true"/>

View File

@ -58,7 +58,7 @@ static int report_json(const char *filename, report_context * ctx, const char *c
sr = find_seen(ctx->seen, r);
if (sr) {
terrain_t ter = oldterrain(r->terrain);
if (ter != NOTERRAIN) {
if (ter == NOTERRAIN) {
log_warning("report_json: %s has no terrain id\n", r->terrain->_name);
}
data = 1 + (int)ter;