summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/losglobal.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix mimic opacity for different LOS models.Adam Borowski2011-12-111-9/+0
|
* Disambiguate the LOS_SOLID confusion.Adam Borowski2011-12-111-0/+1
| | | | | | | | | | | Its name suggests it's about line of effect, while in fact it's both effect and sight. Thus, I've split its uses into LOS_SOLID and LOS_SOLID_SEE -- the former is what LOS_SOLID was usually understood to mean, the latter is what it actually was (being targettable with an arrow/beam). The difference is: LOS_SOLID_SEE obeys clouds. The name of the latter is abysmal -- if you have a better idea, please sed.
* Straighten the two cell_see_cell() confusion.Adam Borowski2011-09-051-0/+1
| | | | | | | | | | | | There were two functions: one used no cache and ignored clouds, another one has a cache and accepts different LOS models. I added a new cached model: LOS_SOLID (using opc_solid). All but one uses of opc_fullyopaque (two-argument cell_see_cell()) were bugs to me, so they were moved to a different model. This makes Refrigeration not work through glass walls anymore (it still works though clouds).
* More than double the speed of LOS calculations.Adam Borowski2011-08-231-2/+1
| | | | | | There are two speed-ups: * no need to check rays in the bounding square beyond a circle * don't calculate both LOS_DEFAULT and LOS_NO_TRANS every time
* ... and check if it works.Adam Borowski2010-09-301-1/+0
|
* Bring sanity to enums by making them diffable/patchable.Adam Borowski2010-06-081-1/+1
|
* Yet another version of arena LOS hacks.Robert Vollmert2010-03-221-1/+2
|
* losglobal.cc: A start at tracking LOS globally.Robert Vollmert2010-03-221-0/+17