From 4277eaea5e02fb69d64193a0395357e2c346afdb Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sat, 21 Nov 2009 12:37:25 -0600 Subject: Add formatting fixes. This mostly puts && and || on the proper lines, per the style guide. --- crawl-ref/source/database.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/database.cc') diff --git a/crawl-ref/source/database.cc b/crawl-ref/source/database.cc index 34cb1cb73a..bb33b44dd0 100644 --- a/crawl-ref/source/database.cc +++ b/crawl-ref/source/database.cc @@ -277,8 +277,8 @@ std::vector database_find_bodies(DBM *database, datum dbBody = dbm_fetch(database, dbKey); std::string body((const char *)dbBody.dptr, dbBody.dsize); - if (tpat.matches(body) && - key.find("__") == std::string::npos + if (tpat.matches(body) + && key.find("__") == std::string::npos && (filter == NULL || !(*filter)(key, body))) { matches.push_back(key); -- cgit v1.2.3-54-g00ecf