forked from github/server
msg_setting is a dead feature, remove leftovers.
This commit is contained in:
parent
fc2506ee83
commit
13cc8841d3
1 changed files with 1 additions and 10 deletions
|
@ -46,16 +46,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
typedef struct msg_setting {
|
|
||||||
struct msg_setting *next;
|
|
||||||
const struct message_type *type;
|
|
||||||
int level;
|
|
||||||
} msg_setting;
|
|
||||||
|
|
||||||
/************ Compatibility function *************/
|
|
||||||
#define MAXSTRLEN (4*DISPLAYSIZE+3)
|
#define MAXSTRLEN (4*DISPLAYSIZE+3)
|
||||||
#include "region.h"
|
|
||||||
#include <kernel/config.h>
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
arg_set(variant args[], const message_type * mtype, const char *buffer,
|
arg_set(variant args[], const message_type * mtype, const char *buffer,
|
||||||
|
@ -267,7 +258,7 @@ void addmessage(region * r, faction * f, const char *s, msg_t mtype, int level)
|
||||||
message * msg_error(const unit * u, struct order *ord, int mno) {
|
message * msg_error(const unit * u, struct order *ord, int mno) {
|
||||||
static char msgname[20];
|
static char msgname[20];
|
||||||
|
|
||||||
if (fval(u->faction, FFL_NPC)) {
|
if (u->faction->flags & FFL_NPC) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
sprintf(msgname, "error%d", mno);
|
sprintf(msgname, "error%d", mno);
|
||||||
|
|
Loading…
Reference in a new issue