summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libunix.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-04-17 15:21:57 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-04-18 10:14:47 +0200
commitbc8c0f841d3ec4c0b714c62e2708daa6ffe30d84 (patch)
tree03bfb6e496f7b1a636d93563cbc3b37a8d8ff63a /crawl-ref/source/libunix.cc
parentff004f8d74f1ab01b37466d9a175049d44217862 (diff)
downloadcrawl-ref-bc8c0f841d3ec4c0b714c62e2708daa6ffe30d84.tar.gz
crawl-ref-bc8c0f841d3ec4c0b714c62e2708daa6ffe30d84.zip
Remove another few unused functions.
Also, instead of inc_max_mp() which does a bunch of stuff like adding notes (suppressed), healing you, etc, just increase max_mp directly. It's used only during player creation.
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r--crawl-ref/source/libunix.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc
index 8f4e795911..768d08e833 100644
--- a/crawl-ref/source/libunix.cc
+++ b/crawl-ref/source/libunix.cc
@@ -726,26 +726,30 @@ void gotoxy_sys(int x, int y)
}
typedef cchar_t char_info;
-inline bool operator == (const cchar_t &a, const cchar_t &b)
+static inline bool operator == (const cchar_t &a, const cchar_t &b)
{
return (a.attr == b.attr && *a.chars == *b.chars);
}
-inline char_info character_at(int y, int x)
+
+static inline char_info character_at(int y, int x)
{
cchar_t c;
// (void) is to hush an incorrect clang warning.
(void)mvin_wch(y, x, &c);
return (c);
}
-inline bool valid_char(const cchar_t &c)
+
+static inline bool valid_char(const cchar_t &c)
{
return *c.chars;
}
-inline void write_char_at(int y, int x, const cchar_t &ch)
+
+static inline void write_char_at(int y, int x, const cchar_t &ch)
{
move(y, x);
add_wchnstr(&ch, 1);
}
+
static void flip_colour(cchar_t &ch)
{
const unsigned colour = (ch.attr & A_COLOR);