summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
Commit message (Collapse)AuthorAgeFilesLines
* Trim unnecessary #includes.Adam Borowski2010-01-131-3/+0
|
* Update exclusion annotations for flamethrower exclusions.Johanna Ploog2010-01-121-2/+5
| | | | | If a flamethrower cell is already excluded, add a description if it doesn't have one already.
* Remove commented out conditionals.Johanna Ploog2010-01-071-4/+1
| | | | | | | | I played around with how the mesmerisation restriction tiles look when only applying to floor and within los (as is the case for ASCII) but I feel that's confusing and misleading in that it completely disregards the possibility of controlled teleport placing you outside your current los and still within sight of the mermaid.
* Reuse "out of range" tile for movement restrictions when mesmerised.Johanna Ploog2010-01-071-1/+9
|
* Unnerf Dowan.Jude Brown2010-01-071-0/+8
| | | | | | | | | | | | | | The previous incarnation basically made it a necessity to kill Duvessa first, otherwise she would go berserk and easily kill the player; this is both spoiler-ridden and unbalanced. Instead of making Dowan run away in fear, he'll be temporarily hasted, and receive an upgrade of spells. Fireball will replace both of his conjurations, and Corona and Haste Other are replaced by Blink and Haste respectively. Fireball tracers currently don't seem to work properly, meaning that Dowan can kill himself with his own Fireball. This is undesirable.
* Boost Ilsuiw stats and give her Call Tide, which strongly boosts the tide in ↵Darshan Shaligram2009-12-291-0/+13
| | | | Shoals, pegs it towards high tide, and includes a local high tide maximum centered on Ilsuiw, which can be double the height of the normal high tide.
* tiles: only include tiledef-*.h in files where they're neededSteven Noonan2009-12-121-0/+4
| | | | | | | This eliminates the annoying full rebuild that happens when the tiledefs are modified. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Fix travel colouring leaking into viewport.Robert Vollmert2009-12-051-2/+2
|
* Fix stairs outside LOS not being emphasised in viewport.Robert Vollmert2009-12-051-2/+2
|
* Make "seen" flag in monster specs work.Jude Brown2009-12-051-1/+5
| | | | (Somewhat hackish.)
* Do out-of-LOS staircase emphasis when drawing.Robert Vollmert2009-12-041-3/+2
| | | | | This fixes emphasised stair colours being out of date until they come into LOS again.
* Only reset env.tile_* when updating env.show.Robert Vollmert2009-12-041-4/+5
| | | | This should fix items and monsters sometimes not being drawn.
* Don't always call deferred_exclude_update.Robert Vollmert2009-12-021-6/+24
| | | | This was now causing general slowness.
* Defer exclusion updates for cloud autoexcludes.Robert Vollmert2009-12-021-1/+5
| | | | This fixes associated slowness.
* Unify colour handling in env.show and env.map_knowledge.Robert Vollmert2009-12-011-5/+5
| | | | | | | | | Colour is now always precomputed, and only possibly overridden by travel information on display. It's quite unclear that storing the colour in env.show and env.map_knowledge is the right thing to do, but at least it's handled consistently now.
* Add an option to draw the player cursor manually.Robert Vollmert2009-11-281-1/+2
| | | | | | | | | | | | | Set use_fake_player_cursor = true to use this. This allows defaulting the cursor to off, which means less cursor blinking say when travelling. This patch also moves the cursor control closer to where it's used, so that the cursor is only turned on for actual input prompts. I've definitely missed some prompts here: almost anything that prompts for a single character and reads it using getch() will not have a cursor with use_fake_player_cursor set at the moment.
* Remove unnecessary header-header includes.Robert Vollmert2009-11-271-0/+1
|
* Restore redrawing when resting.Robert Vollmert2009-11-211-1/+1
| | | | | | This means that you'll see allies moving, summons disappearing and clouds changing while resting, like before (console) or newly (tiles).
* Add formatting fixes.David Lawrence Ramsey2009-11-211-2/+2
| | | | This mostly puts && and || on the proper lines, per the style guide.
* Remove trailing whitespace.David Lawrence Ramsey2009-11-201-1/+1
|
* Fix non-tiles compilation.Adam Borowski2009-11-181-0/+2
|
* Remove now-redundant bounds check from tile_draw_floor.Robert Vollmert2009-11-181-2/+2
|
* Reorder some tiles calls in viewwindow.Robert Vollmert2009-11-181-8/+8
| | | | | tile_draw_floor should be after los update but before show update.
* Move tile_draw_floor into view.cc.Robert Vollmert2009-11-181-0/+28
| | | | | It seems like it should be merged with some of the other code there.
* Flatten header dependencies a bit.Robert Vollmert2009-11-171-0/+1
| | | | | | This removes a couple of unnecessary includes from header files. I may have missed adding some tiles includes.
* Move tutorial state out of Options.Robert Vollmert2009-11-161-1/+1
|
* Move running short-circuit earlier in viewwindow (tiles).Robert Vollmert2009-11-161-8/+2
| | | | | | | Tiles main viewwindow loop now doesn't have side-effects either. Also unify the short-circuit checks: Console version also skips redrawing when resting.
* Simplify out-of-range darkening.Robert Vollmert2009-11-161-2/+3
| | | | | | | | | | | | | | | Also fixes the range_view_annotator destructor clobbering option "darken_beyond_range". Options.target_range is now really an option, and called Options.darken_beyond_range. Current darkening range is now stored in crawl_state.darken_range. I can't reproduce SIGHUP retaining darkened range (BR 2151183) (why would it be saved?), so range_view_annotator is not a crawl_exit_hook anymore. crawl_exit_hook is not used anymore, but still present.
* Wrap view flashing in flash_view.Robert Vollmert2009-11-161-0/+6
| | | | This also removes env.show updates when flashing.
* Remove redundant env.tile_bk_{fg,bg} update from draw_player.Robert Vollmert2009-11-161-6/+0
|
* Make show updates conditional in viewwindow.Robert Vollmert2009-11-161-8/+13
|
* Unindirect an include.Robert Vollmert2009-11-161-1/+1
|
* Fix out-of-range colouring logic.Robert Vollmert2009-11-161-5/+5
| | | | This fixes items out of view not being coloured anymore.
* Remove 'set_map_knowledge_glyph'.Robert Vollmert2009-11-161-8/+2
|
* Don't auto-exclude clouds in arena mode.Matthew Cline2009-11-161-1/+1
| | | | | During arena mode, the hazardous clouds made by some monsters were being auto-excluded as if they had ben generated via a fog machine.
* Merge get_symbol and get_show_glyph.Robert Vollmert2009-11-151-28/+13
|
* Remove one version of get_screen_glyph.Robert Vollmert2009-11-151-2/+2
|
* Merge monster_grid into show_def.Robert Vollmert2009-11-141-38/+0
|
* Remove #include <conio.h> from all over the place. Convert COLORS to an enum.Adam Borowski2009-11-141-4/+0
|
* view.c: fix magic-mapping crashMatthew Cline2009-11-131-0/+3
|
* Improve Fedhas' interaction with auto-exclusionsCharles Otto2009-11-131-1/+0
| | | | | | | | | Make neutralization work on monsters that are out of sight, also make it clear auto-exclusions for e.g. oklobs that previously got auto-ann. but are now out of sight. Make the monster_hostile stuff put auto-exclusions on oklobs you have already seen (if it turns them hostile).
* Convert a bunch of coordinate loops to new radius_iterator.Robert Vollmert2009-11-131-2/+3
|
* Remove obsoleted los.h includes.Robert Vollmert2009-11-131-1/+0
|
* Replace calc_show_los by you.update_los.Robert Vollmert2009-11-131-1/+1
|
* Replace observe_cell by you.see_cell.Robert Vollmert2009-11-131-3/+3
|
* view.cc: Remove an extra USE_TILE after #else.Vsevolod Kozlov2009-11-131-1/+1
|
* Revert "Move arena check to draw_player."Robert Vollmert2009-11-131-3/+4
| | | | | | This reverts commit 3da2a539cae5cd1838f45b598355ab58d039fa6b. Was causing player position not be updated at all in arena.
* Leave viewwindow early when not drawing.Robert Vollmert2009-11-131-18/+21
| | | | | | | | viewwindow has code to not draw if the player is travelling (depending on travel_delay etc). This check is now moved before the code that updates buffy for non-tiles builds. I'm not sure whether the tiles drawing code doesn't have important side-effects -- if not, the tiles check could be moved before the main loop as well.
* Move arena check to draw_player.Robert Vollmert2009-11-131-4/+3
|
* Make tiles and non-tiles use the "same" screen_buffer_t buffy.Robert Vollmert2009-11-131-72/+57
| | | | This change also gets rid of the ugly intermediate macroing.