summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/package.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-09-17 13:26:09 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-09-17 13:26:09 +0200
commitde7f74c9d9475a75c1e15c012f98851e86348582 (patch)
treeb7c17e6a3e7631f889cc670d2b3df69afdc8a57d /crawl-ref/source/package.cc
parent0f2125cfd38ad82d217821a3729abb328b6ef85e (diff)
downloadcrawl-ref-de7f74c9d9475a75c1e15c012f98851e86348582.tar.gz
crawl-ref-de7f74c9d9475a75c1e15c012f98851e86348582.zip
Document the limitation of save chunk name length of 4 characters.
Diffstat (limited to 'crawl-ref/source/package.cc')
-rw-r--r--crawl-ref/source/package.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/package.cc b/crawl-ref/source/package.cc
index 37f0a53f6d..acc4a8fef3 100644
--- a/crawl-ref/source/package.cc
+++ b/crawl-ref/source/package.cc
@@ -525,6 +525,14 @@ chunk_writer::chunk_writer(package *parent, const std::string _name)
{
ASSERT(parent);
ASSERT(!parent->aborted);
+
+ /*
+ The save format is currently limited to 4 character names for simplicity
+ (we use 3 max). If you want to extend this, please implement marshalling
+ of arbitrary strings in {read,write}_directory().
+ */
+ ASSERT(_name.size() <= 4);
+
dprintf("chunk_writer(%s): starting\n", _name.c_str());
pkg = parent;
pkg->n_users++;