summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tileweb.cc
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2013-05-24 14:40:53 +0200
committerPete Hurst <pete@streamuniverse.tv>2013-05-25 17:05:49 +0100
commit8b2a8f1c623a15c677a3b30a89df9c172ff2a657 (patch)
treed86219e8c971087ed20e4b9044bd6db6d65cdb8a /crawl-ref/source/tileweb.cc
parent65bbc6cf12d980cd56f539e8bba8836311bac564 (diff)
downloadcrawl-ref-8b2a8f1c623a15c677a3b30a89df9c172ff2a657.tar.gz
crawl-ref-8b2a8f1c623a15c677a3b30a89df9c172ff2a657.zip
Prevent a potential Webtiles bug.
This wouldn't be a problem with the flags cloud tiles can currently have, but it's better to be sure.
Diffstat (limited to 'crawl-ref/source/tileweb.cc')
-rw-r--r--crawl-ref/source/tileweb.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/tileweb.cc b/crawl-ref/source/tileweb.cc
index 4013fa48f1..be2153ff24 100644
--- a/crawl-ref/source/tileweb.cc
+++ b/crawl-ref/source/tileweb.cc
@@ -1025,7 +1025,8 @@ void TilesFramework::_send_cell(const coord_def &gc,
if (next_pc.cloud != current_pc.cloud)
{
- json_write_int("cloud", next_pc.cloud);
+ json_write_name("cloud");
+ _write_tileidx(next_pc.cloud);
}
if (next_pc.is_bloody != current_pc.is_bloody)