summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/message-stream.cc
Commit message (Collapse)AuthorAgeFilesLines
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-1/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* Replace `mpr(s, ch)` with `mprf(ch, s)`Adam Borowski2013-11-291-2/+2
| | | | | | | | | Also simplify quite a few cases. It turns out in >90% cases of non-literals the argument had .c_str(), which meant it was pointlessly malloc()ed and converted from and to std::string. I believe a sprintf is faster, so even the argument of miniscule speed-up doesn't apply.
* Use std namespace.Raphael Langella2012-08-261-9/+9
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Drop a bunch of useless uses of this->Adam Borowski2012-07-101-2/+2
| | | | | I left a few cases where it helps disambiguate between global and object functions by the same name (formatted_string::cprintf(), etc).
* Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-3/+3
| | | | | | I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.
* Fix message stream leak when playing multiple games without restarting Crawl.Darshan Shaligram2010-07-041-3/+2
|
* Fix newlines at end of file.Adam Borowski2010-01-211-2/+0
|
* Move message streams out to separate file.Robert Vollmert2009-12-091-0/+104