diff options
author | Neil Moore <neil@s-z.org> | 2014-05-12 18:00:32 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-05-12 18:11:14 -0400 |
commit | 9bc6d1f085097d001f0ff31f9bb900bb71957212 (patch) | |
tree | ca6c52fa82eac19c98baec7ce93b557e4d5be22e /crawl-ref/source/mapmark.cc | |
parent | bca6d2d0ab66b008f7f1664769ba4a3a655a3444 (diff) | |
download | crawl-ref-9bc6d1f085097d001f0ff31f9bb900bb71957212.tar.gz crawl-ref-9bc6d1f085097d001f0ff31f9bb900bb71957212.zip |
Formatting fixes (add braces).
This fixes all the instances caught by unbrace.
Diffstat (limited to 'crawl-ref/source/mapmark.cc')
-rw-r--r-- | crawl-ref/source/mapmark.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/mapmark.cc b/crawl-ref/source/mapmark.cc index c0016c1515..aec021857b 100644 --- a/crawl-ref/source/mapmark.cc +++ b/crawl-ref/source/mapmark.cc @@ -201,8 +201,10 @@ map_lua_marker::map_lua_marker(const string &s, const string &, else { if (dlua.execstring(("return " + s).c_str(), "lua_marker_mapless", 1)) + { mprf(MSGCH_ERROR, "lua_marker_mapless exec error: %s", dlua.error.c_str()); + } } check_register_table(); } @@ -1299,8 +1301,10 @@ void remove_markers_and_listeners_at(coord_def p) for (int i = 0, size = markers.size(); i < size; ++i) { if (markers[i]->get_type() == MAT_LUA_MARKER) + { dungeon_events.remove_listener( dynamic_cast<map_lua_marker*>(markers[i])); + } } env.markers.remove_markers_at(p); |