… | |
… | |
224 | send_msg (NDI_REPLY | color, INFO_CHANNEL, msg); |
224 | send_msg (NDI_REPLY | color, INFO_CHANNEL, msg); |
225 | } |
225 | } |
226 | |
226 | |
227 | // a prominent box that signifies some error such as a failed |
227 | // a prominent box that signifies some error such as a failed |
228 | // improvement potion. should not be long. |
228 | // improvement potion. should not be long. |
229 | void errormsg (const char *msg, int color = NDI_RED) |
229 | void failmsg (const char *msg, int color = NDI_RED) |
230 | { |
230 | { |
231 | play_sound (sound_find ("errormsg")); |
231 | play_sound (sound_find ("generic_failure")); |
232 | statusmsg (msg, color); |
232 | statusmsg (msg, color); |
233 | } |
233 | } |
234 | |
234 | |
235 | ~player (); |
235 | ~player (); |
236 | |
236 | |
… | |
… | |
252 | { |
252 | { |
253 | if (expect_true (contr)) contr->statusmsg (msg, color); |
253 | if (expect_true (contr)) contr->statusmsg (msg, color); |
254 | } |
254 | } |
255 | |
255 | |
256 | inline void |
256 | inline void |
257 | object::errormsg (const char *msg, int color) |
257 | object::failmsg (const char *msg, int color) |
258 | { |
258 | { |
259 | if (expect_true (contr)) contr->errormsg (msg, color); |
259 | if (expect_true (contr)) contr->failmsg (msg, color); |
260 | } |
260 | } |