summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-asrt.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-04-14 00:54:38 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-04-14 00:54:38 +0200
commit64c133e5dc209f5126ca46b8aba4b7307cc45aef (patch)
tree33e6c553edfc5e5cb947a840d6ada61b7f912912 /crawl-ref/source/dbg-asrt.cc
parent70afa706fbb8ccdc59c6c4c32c50776800076354 (diff)
downloadcrawl-ref-64c133e5dc209f5126ca46b8aba4b7307cc45aef.tar.gz
crawl-ref-64c133e5dc209f5126ca46b8aba4b7307cc45aef.zip
Remove the now-unused code for emergency saves.
If we want them back for assertions, it'd be far better to save _before_ going into the crash handler.
Diffstat (limited to 'crawl-ref/source/dbg-asrt.cc')
-rw-r--r--crawl-ref/source/dbg-asrt.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/dbg-asrt.cc b/crawl-ref/source/dbg-asrt.cc
index cadd9d388f..5606586531 100644
--- a/crawl-ref/source/dbg-asrt.cc
+++ b/crawl-ref/source/dbg-asrt.cc
@@ -777,13 +777,10 @@ static NORETURN void _BreakStrToDebugger(const char *mesg, bool assert)
// AssertFailed
//
//---------------------------------------------------------------
-NORETURN void AssertFailed(const char *expr, const char *file, int line, bool save_game)
+NORETURN void AssertFailed(const char *expr, const char *file, int line)
{
char mesg[512];
- if (save_game)
- crawl_state.game_wants_emergency_save = true;
-
const char *fileName = file + strlen(file); // strip off path
while (fileName > file && fileName[-1] != '\\')