diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-19 12:31:32 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-19 12:31:32 +0000 |
commit | ab679653017c1d661572cf34a62bf5ddf7c1304e (patch) | |
tree | 359b57bcf3e60574d64ce9c6ee4ca54a2d788807 /crawl-ref/source/files.cc | |
parent | 73eb0f77865d30c6da027b85c716bce7edd3fa1b (diff) | |
download | crawl-ref-ab679653017c1d661572cf34a62bf5ddf7c1304e.tar.gz crawl-ref-ab679653017c1d661572cf34a62bf5ddf7c1304e.zip |
Added elf arrival vaults (Eino).
Tweaked dungeon builder so you always land on { on level 1 of a branch (using a
map marker to identify which stair was a {).
Maps with the "uniq" tag will be used only once in a game. Maps with a
"uniq_foo" tag will be used only once, and will also prevent any other maps
tagged "uniq_foo" from being used thereafter. Breaks saves.
Oklob plants should not receive stab brands, fixed.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1897 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 6da990e5b8..ad8baf87c1 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -1478,14 +1478,14 @@ void writeString(FILE* file, const std::string &s, int cap) int length = s.length(); if (length > cap) length = cap; - writeShort(file, length); + writeLong(file, length); if (length) write2(file, s.c_str(), length); } std::string readString(FILE *file, int cap) { - short length = readShort(file); + const int length = readLong(file); if (length > 0) { if (length <= cap) |