diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-13 13:45:12 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-13 13:45:12 +0000 |
commit | 3600271e4eacec0160f88dba0c76a72467e84a07 (patch) | |
tree | d0513455a8e9b825f142037d6d74d21ac8b35f42 /crawl-ref/source/Kills.cc | |
parent | 1b7682ecfe6bb7d7d37e73f8769a452fdc8b04d2 (diff) | |
download | crawl-ref-3600271e4eacec0160f88dba0c76a72467e84a07.tar.gz crawl-ref-3600271e4eacec0160f88dba0c76a72467e84a07.zip |
Give kills.lua more leash before CPU throttling kicks in.
&~ to level 1 of a branch now puts you on the branch upstairs.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1856 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/Kills.cc')
-rw-r--r-- | crawl-ref/source/Kills.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/Kills.cc b/crawl-ref/source/Kills.cc index 74c3215f35..890d9c3deb 100644 --- a/crawl-ref/source/Kills.cc +++ b/crawl-ref/source/Kills.cc @@ -136,6 +136,7 @@ std::string KillMaster::kill_info() const } #ifdef CLUA_BINDINGS + unwind_var<int> lthrottle(clua.throttle_unit_lines, 500000); // Call the kill dump Lua function with null a, to tell it we're done. if (!clua.callfn("c_kill_list", "ss", NULL, grandt.c_str())) #endif @@ -173,7 +174,8 @@ void KillMaster::add_kill_info(std::string &killtext, lua_pushnil(clua); lua_pushboolean(clua, separator); - + + unwind_var<int> lthrottle(clua.throttle_unit_lines, 500000); if (!clua.callfn("c_kill_list", 3, 0)) #endif { |