From 21cfdbc39885c510cf562bbd86f5f29cf8e38b3d Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 26 Nov 2008 18:34:19 +0000 Subject: Attempt to place ziggurat loot vault inside the ziggurat. If the vault doesn't fit, we fall back to generating the loot in the open. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7639 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tags.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/tags.cc') diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 2ac7e883f3..8c8af99ade 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -1039,7 +1039,8 @@ static void tag_construct_you(writer &th) // minorVersion 7 starts here marshallByte(th, you.friendly_pickup); - dlua.callfn("dgn_save_data", "u", &th); + if (!dlua.callfn("dgn_save_data", "u", &th)) + mprf(MSGCH_ERROR, "Failed to save Lua data: %s", dlua.error.c_str()); } static void tag_construct_you_items(writer &th) @@ -1445,7 +1446,11 @@ static void tag_read_you(reader &th, char minorVersion) you.friendly_pickup = unmarshallByte(th); if (minorVersion >= TAG_MINOR_LUADGN) - dlua.callfn("dgn_load_data", "u", &th); + { + if (!dlua.callfn("dgn_load_data", "u", &th)) + mprf(MSGCH_ERROR, "Failed to load Lua persist table: %s", + dlua.error.c_str()); + } } static void tag_read_you_items(reader &th, char minorVersion) -- cgit v1.2.3-54-g00ecf