diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-25 20:36:42 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-25 20:36:42 +0000 |
commit | eca2b4e128181432115b49cb6371c51fa3221cec (patch) | |
tree | 6d0ae350754ba522d2848d4164696c1d476c4231 /crawl-ref/source/notes.h | |
parent | 2184f5a98edb10e49ec9b7611601552fe686d737 (diff) | |
download | crawl-ref-eca2b4e128181432115b49cb6371c51fa3221cec.tar.gz crawl-ref-eca2b4e128181432115b49cb6371c51fa3221cec.zip |
Added you.level_type_name_abbrev, which on portal levels is stored in
notes (adding an overhead of 4 bytes per note) to be used as the place name
when displaying notes, like this:
34 | Zig:2 | Shot with a bolt by a yaktaur captain (26 damage)
Breaks savefile compatibility.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7621 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/notes.h')
-rw-r--r-- | crawl-ref/source/notes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/notes.h b/crawl-ref/source/notes.h index 417be71af5..86879d0081 100644 --- a/crawl-ref/source/notes.h +++ b/crawl-ref/source/notes.h @@ -13,6 +13,8 @@ #include <vector> #include <stdio.h> +#define MAX_NOTE_PLACE_LEN 7 + class reader; class writer; @@ -62,6 +64,7 @@ struct Note int first, second; long turn; unsigned short packed_place; + std::string place_abbrev; std::string name; std::string desc; }; |