diff options
-rw-r--r-- | src/util.cc | 5 | ||||
-rw-r--r-- | src/util.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc index 9005c04f..fc8f4080 100644 --- a/src/util.cc +++ b/src/util.cc @@ -1886,6 +1886,11 @@ void cmsg_print(byte color, cptr msg) if (options->fresh_message) Term_fresh(); } +void cmsg_print(byte color, std::string const &msg) +{ + cmsg_print(color, msg.c_str()); +} + /* Hack -- for compatibility and easy sake */ void msg_print(cptr msg) { diff --git a/src/util.hpp b/src/util.hpp index 8b8b2e3c..1f5c3aed 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -35,6 +35,7 @@ void ascii_to_text(char *buf, cptr str); char inkey_scan(); void display_message(int x, int y, int split, byte color, cptr t); void cmsg_print(byte color, cptr msg); +void cmsg_print(byte color, std::string const &msg); void msg_print(cptr msg); void cmsg_format(byte color, cptr fmt, ...); void msg_format(cptr fmt, ...); |