summaryrefslogtreecommitdiffstats
path: root/crawl-ref/docs
diff options
context:
space:
mode:
authorEnne Walker <ennewalker@users.sourceforge.net>2009-11-29 13:29:27 -0500
committerEnne Walker <ennewalker@users.sourceforge.net>2009-11-29 13:39:23 -0500
commitfa6e376242d7e7de95ff8419b226286b650fe304 (patch)
treeab7315676f1c1af3d0eccc632b9db422c60bb10c /crawl-ref/docs
parente9dc6e7d4fec48cbadc3ad9459c5f047a6d82aa5 (diff)
downloadcrawl-ref-fa6e376242d7e7de95ff8419b226286b650fe304.tar.gz
crawl-ref-fa6e376242d7e7de95ff8419b226286b650fe304.zip
Change mapgrd and mapbld funcs to be 0-indexed.
All the other dgn and map functions in Crawl are 0-indexed, so this makes everything more consistent. I've changed all the uses in the master branch, but if you're using these functions in another branch (dpeg and due), then you'll need to adjust all your coordinates to match.
Diffstat (limited to 'crawl-ref/docs')
-rw-r--r--crawl-ref/docs/develop/levels/advanced.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/docs/develop/levels/advanced.txt b/crawl-ref/docs/develop/levels/advanced.txt
index a477d446e5..4a061f0034 100644
--- a/crawl-ref/docs/develop/levels/advanced.txt
+++ b/crawl-ref/docs/develop/levels/advanced.txt
@@ -811,11 +811,11 @@ Additionally, the dgn module provides a global "mapgrd" variable that
can access the current map glyphs. The top left symbol in the map
can be assigned like this:
- mapgrd[1][1] = 'x'
+ mapgrd[0][0] = 'x'
The bottom right symbol can be assigned like this:
- mapgrd[width()][height()] = "."
+ mapgrd[width()-1][height()-1] = "."
Lua API - global game state