summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/message.cc
Commit message (Collapse)AuthorAgeFilesLines
* Account for indicator column when using &" with delay_message_clearStefan O'Rear2009-12-301-0/+3
|
* remove mpr message length limitationJesse Luehrs2009-12-271-5/+10
|
* dprf(...), does same as mprf(MSGCH_DIAGNOSTICS, ...) in debug builds, ↵Adam Borowski2009-12-201-0/+10
| | | | nothing otherwise.
* Replace static snprintf() with make_sprintf() where the result is ↵Adam Borowski2009-12-171-0/+1
| | | | | | immediately cast to std::string.
* A different fix to --more-- overwriting the last line.Robert Vollmert2009-12-171-6/+2
| | | | This should remove the current abundance of more prompts.
* Revert "Do also increment message count for prompts."Robert Vollmert2009-12-171-1/+6
| | | | This reverts commit 6efa910975ee9276ad90a84016a4bbece541448c.
* Fix a comment.Johanna Ploog2009-12-111-3/+3
|
* Do also increment message count for prompts.Robert Vollmert2009-12-081-6/+1
| | | | | Otherwise, the line count is off when prompts are involved, causing the "more" prompt to overwrite the last line.
* Turn cursor off when drawing delay_message_clear dash.Robert Vollmert2009-12-031-0/+1
|
* Start messages at window bottom with delay_message_clear.Robert Vollmert2009-11-301-2/+19
|
* Simplify scrolling handling in message_out.Robert Vollmert2009-11-261-23/+15
| | | | | | | | | | The newline parameter to message_out is gone. Instead, a pointer to the message line is passed which may lie outside the message window. The window is then scrolled to make that line the last line. This also updates libnonunix.cc, but I haven't been able to test those changes.
* Put more() prompt on new line with delay_message_clear.Robert Vollmert2009-11-261-2/+3
|
* Flush previous messages in more().Robert Vollmert2009-11-261-0/+2
| | | | | | | | | This fixes the level up message disappearing with delay_message_clear and is probably the right thing to do anyway. Before, the ---more--- would be printed before older messages were shown.
* delay_message_clear: Output leading dash on mesclr already.Robert Vollmert2009-11-261-18/+10
| | | | | This gives a clear indication of which messages happened in the current turn.
* Fix non-wizard compilation.Robert Vollmert2009-11-251-3/+13
|
* Auto-clear more while luaterp is runningMatthew Cline2009-11-241-1/+3
|
* reset_more_autoclear() -> set_more_autoclear()Matthew Cline2009-11-241-4/+4
| | | | | You can now also turn on autoclear-more status from outside message.cc, rather than just turning it off.
* Give a message and FX when you banish people.Adam Borowski2009-11-231-0/+4
|
* Add formatting fixes.David Lawrence Ramsey2009-11-211-2/+2
| | | | This mostly puts && and || on the proper lines, per the style guide.
* Move silenced(pos) to areas.cc.Robert Vollmert2009-11-211-0/+1
|
* Move tutorial state out of Options.Robert Vollmert2009-11-161-1/+1
|
* Remove #include <conio.h> from all over the place. Convert COLORS to an enum.Adam Borowski2009-11-141-4/+0
|
* Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-1/+1
| | | | | I'm pretty sure I've managed to replace every instance of a reference to these files, so I hopefully haven't missed anything.
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Rename FeawnCharles Otto2009-11-081-1/+1
| | | | | In most places Feawn is now referred to as "Fedhas," its long name (used in the religion screen) is "Fedhas Madash"
* Split up view.cc.Robert Vollmert2009-11-041-0/+2
|
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+2
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* Rename Chronos to Cheibriados. (Jude Brown)David Ploog2009-10-231-1/+1
|
* Tentatively color Chronos lightcyan.Adam Borowski2009-10-211-2/+1
|
* gods: added "Chronos", the slow godSteven Noonan2009-10-201-0/+4
| | | | | Signed-off-by: Brendan Hickey <brendan@bhickey.net> Acked-by: Steven Noonan <steven@uplinklabs.net>
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* project-wide: implement use of platform.h detection macrosSteven Noonan2009-10-101-1/+1
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Generalized solution to the "disconnect at --more--" problem (e.g., disconnectzelgadis2009-07-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | at the more after "You have lost your religion!" to avoid the negative consequences of excommunication): when a HUP signal is received, instead of immediately saving the game, close the stdin stream, which will cause all of the Curses calls which normal block on key-presses to unblock, so that the code after a more() call will execute before the disconnected game is saved (which will happen in _input() in acr.cc). This only affects Curses (non-tiles/console) UNIX builds which have both USE_UNIX_SIGNALS and SIGHUP_SAVE defined. Exceptions to the above: * If HUP is received during a call to yesno() with safeanswer == 0, then the game will be saved immediately, since there's no way for the function to tell which answer is safe to give automatically. * If HUP is received while selecting the target for a controlled teleport then the teleport will be canceled, since otherwise a target other than the intended one might be the one under the cursor when the disconnect happened. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10443 c06c8d41-db1a-0410-9941-cceddc491573
* Apply caotto's plant god patch, for now named "Feawn".j-p-e-g2009-07-201-0/+3
| | | | | | | Also fix potions of porridge's menu colour being yellow for Mummies. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10355 c06c8d41-db1a-0410-9941-cceddc491573
* Add the Slime god as per n78291's (Shayne?) patch. Thanks! :Dj-p-e-g2009-07-181-0/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10271 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my recent commits to trunk.j-p-e-g2009-06-151-3/+7
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9984 c06c8d41-db1a-0410-9941-cceddc491573
* Reduce screen-flicker and clearing of the message window when re-doing thezelgadis2009-05-281-0/+3
| | | | | | | | | | | previous command (`) (at least for actions involving selecting an item from inventory, selecting an ability to use, selecting a spell to cast, and selecting a spell to memorize). Not tested with the tiles build. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9839 c06c8d41-db1a-0410-9941-cceddc491573
* Reset Message_Line and New_Message_Count to 0 after loading message historyzelgadis2009-05-251-0/+1
| | | | | | | | from the save file. This fixes a two-fold bug with the tutorial "welcome back" message, a lack of a --more-- prompt and some line-wrapping glitches. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9826 c06c8d41-db1a-0410-9941-cceddc491573
* Add spacing fixes.dolorous2009-04-301-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9709 c06c8d41-db1a-0410-9941-cceddc491573
* * Don't offer rotten chunks for wearers of "otG since it doesn'tj-p-e-g2009-03-221-1/+1
| | | | | | | | | actually allow eating of rotten stuff. * Tweak Xom's mood descriptions -> shortened to 7. * Increase chance of Xom acting under tension: 5% -> 10% git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9535 c06c8d41-db1a-0410-9941-cceddc491573
* Fix recursive loops for flushing messages when more() is calling getch()j-p-e-g2009-02-281-2/+9
| | | | | | | | | | by adding a boolean to keep track on whether we already called flush_prev_message() this round, reset once a new message is pushed into prev_message. There's probably a better solution, but this one works well enough. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9285 c06c8d41-db1a-0410-9941-cceddc491573
* Call flush_prev_message() before getch(), cancelable_get_line() andj-p-e-g2009-02-281-8/+2
| | | | | | | mpr_formatted_output(). Fixes 2647846. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9275 c06c8d41-db1a-0410-9941-cceddc491573
* * Make message condensation merge messages into history correctly.j-p-e-g2009-02-271-10/+18
| | | | | | | | | | | * Fix grid descriptions only showing belatedly. * Fix tutorial starting prompt not being shown. There are likely to be more instances where flush_prev_message() needs to be called although the turn isn't over yet and it's not a prompt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9265 c06c8d41-db1a-0410-9941-cceddc491573
* Implement a very basic attempt at message condensation: Store the most j-p-e-g2009-02-271-8/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | recent message in prev_message and only output it when another non-matching message rolls in or the player gets a turn. Matching messages (must be identical and issued in direct succession, like is the case with the message history condensation) increase the counter, so you end up with messages like: You feel sick. The killer bee misses you. (x3) The killer bee stings you. The killer bee stings you but doesn't do any damage. The killer bee misses you. (x5) ...instead of the 11 lines it would have been in total. This behaviour is controlled by the same option as the condensation in the message history, msg_condense_repeats. There's definitely room for improvement. At the moment the bracketed information is written into the message itself, which will prevent further merging in the message history, or, probably worse, cause ugly double-merging like "The killer bee misses you. (x3) (x2)". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9262 c06c8d41-db1a-0410-9941-cceddc491573
* Fix warning.dolorous2009-02-121-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9049 c06c8d41-db1a-0410-9941-cceddc491573
* Make extra-sure that a monster won't be announced to have come into view, onlyzelgadis2009-01-201-3/+2
| | | | | | | | | | | | to immediately move out of view, by introducing the notion of the currently acting monster to crawl_state, and only flushing out the "comes into view" message in mpr() for the currently acting monster. Not sure if it's worth it just for the sake of avoiding doing a "has this monster just now come into view" check in every place that a monster might issue a message, but at least this way we won't miss any places such a check should be placed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8623 c06c8d41-db1a-0410-9941-cceddc491573
* Yet another attempt to fix problems with the monster "comes into view"zelgadis2009-01-201-0/+12
| | | | | | | | | | | | | | | | | | | | | | | messsages. Such messages are not not flushed immediately upon the monster coming into view, but: 1) After world_reacts() is done. 2) When mpr() is called and the player is either delayed or repeating a command. This should make sure that the "comes into view" message comes before any other messages the monster might give, and also fix the problem of the player moving into a monster's LOS, getting a "comes into view" message, and the monster then moving back out of LOS during the immediately following world_reacts(), which would leave the player puzzled as to why there's no monster in view. As part of the change you.turn_is_over is set to true as soon as world_reacts() starts, which might cause bugs in other places, yet some play testing indicates that it's okay. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8621 c06c8d41-db1a-0410-9941-cceddc491573
* * Also add blood bottling to command help for Vampires.j-p-e-g2009-01-181-1/+1
| | | | | | | * Better feedback when quiver cycling doesn't do anything. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8552 c06c8d41-db1a-0410-9941-cceddc491573