summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/feature.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix magic mapping (#8838)Neil Moore2014-07-301-0/+1
|
* Move more feature name data to feature-data.h.Shmuale Mark2014-07-141-0/+1
|
* Move feature name data to feature-data.h.Shmuale Mark2014-07-141-0/+2
|
* Reorder and document feature.cc.Shmuale Mark2014-07-141-2/+1
|
* Separate feature data into feature-data.h.Shmuale Mark2014-07-141-23/+13
|
* Initialize invis_fd and cloud_fd in the code rather than statically.Adam Borowski2013-12-071-15/+0
| | | | They're non-const and get amended already.
* Fix glyph for detected monsters in unseen squaresPekka Lampila2013-12-071-3/+3
| | | | | It was a line break, which broke WebTiles messages causing a black screen.
* Optimize get_feature_def().Adam Borowski2013-12-061-0/+15
| | | | | | This bizarre map took around 4% of qw CPU. Separating the defs into something directly addressable costs nothing but a minor duplication during initialization that could be put into a function.
* Manually fix a few more instances of return (...)Neil Moore2013-11-151-1/+1
| | | | | These weren't caught by util/unbrace because they weren't at the beginning of the line.
* More formatting fixes for return (...);Neil Moore2013-11-151-1/+1
|
* Fix a memory+speed leak if features are redefined over and over.Adam Borowski2013-07-151-6/+0
| | | | A map can recycle overwritten keys, a vector can't.
* Always use Unicode values for glyphs. Always use ncursesw on Unix console.Adam Borowski2010-09-261-2/+2
| | | | | | | | | | | | CSET_IBM and CSET_DEC are now merely presets and don't change the I/O encoding. Doing I/O using any encoding other than the one configured using LANG/LC_* is just wrong and no well-behaving program should do that. This does require changes on CAO/CDO, but they would fix problems with ttyrec and spectating as well. To fix: ncursesw replaces unrepresentable characters with spaces, we'll have to replace them by hand.
* Remove env.show in favor of using env.map_knowledgeLuca Barbieri2010-07-291-1/+6
| | | | | | | | | | | | | | Currently env.show stores information about the LOS rectangle, while env.map_knowledge stores the rest of the map. This unnecessarily complicates the code, makes serialization harder, and makes it hard to change the LOS model. This code uses map_knowledge for both kinds of data. Regressions are quite possible. Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Map features to base types based on dchar for magic mapping.Robert Vollmert2010-03-061-0/+2
| | | | | | | | | | | This fixes env.map_knowledge having more information than it really should; fixes issue #1019. Instead of creating new generic dungeon_feature_type members, this just maps to one of the features quite arbitrarily. This doesn't matter because console crawl will display them all the same, and tiles chooses its tiles based on the displayed console character.
* Get rid of multiple-meaning "int object" in env.show.Robert Vollmert2009-11-041-3/+19
| | | | | | | | | | | | | env.show is now a class show_def that stores tagged unions of type show_type. For the moment, there's also env.show_los for use in LOS determination, but that should become an array of boolean at some point. This breaks save compatibility. Tiles and console version build and appear to work fine, but this kind of change is likely to have some side-effects.
* Move feature_def and Feature array into feature.cc from view.cc.Robert Vollmert2009-11-041-0/+30