diff options
author | Enne Walker <ennewalker@users.sourceforge.net> | 2009-11-29 13:29:27 -0500 |
---|---|---|
committer | Enne Walker <ennewalker@users.sourceforge.net> | 2009-11-29 13:39:23 -0500 |
commit | fa6e376242d7e7de95ff8419b226286b650fe304 (patch) | |
tree | ab7315676f1c1af3d0eccc632b9db422c60bb10c /crawl-ref/docs | |
parent | e9dc6e7d4fec48cbadc3ad9459c5f047a6d82aa5 (diff) | |
download | crawl-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.txt | 4 |
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 |