summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_colour.cc
Commit message (Collapse)AuthorAgeFilesLines
* Replace `mpr(s, ch)` with `mprf(ch, s)`Adam Borowski2013-11-291-1/+1
| | | | | | | | | 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.
* Correct other missing #includesSamuel Bronson2013-04-061-0/+2
|
* Use std namespace.Raphael Langella2012-08-261-3/+3
| | | | | | | | | | | | | 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.
* Prototype luadoc setup.Samuel Bronson2011-10-021-0/+11
| | | | | Only one function is documented at all so far, but at least the documentation is generated.
* Require explicit enums for Lua colours.Adam Borowski2011-08-091-6/+6
| | | | | In theory, we could allow defining them with a floating name, marshalling that by string and so on, but that'd be a large pile of useless work.
* Assert when trying to add too many Lua colours.Adam Borowski2011-08-091-0/+1
|
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-4/+4
| | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Trim some uneeded includes.Adam Borowski2010-12-141-1/+0
|
* Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-1/+1
| | | | | | 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.
* use lua_datum rather than dump/load for the callbacksJesse Luehrs2010-09-101-21/+8
|
* use dlua, not clua, for colour stuffJesse Luehrs2010-09-101-6/+6
|
* allow defining colour patterns in luaJesse Luehrs2010-09-101-0/+108