increase version number to 3.1

log an error when trying to create an order for a disabled keyword
monsters might be trying to TAX in E3?
This commit is contained in:
Enno Rehling 2014-08-20 19:26:37 +02:00
parent bd8d28cfb7
commit 7b3a381500
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,3 @@
#define VERSION_MAJOR 3
#define VERSION_MINOR 0
#define VERSION_BUILD 682
#define VERSION_MINOR 1
#define VERSION_BUILD 683

View File

@ -257,6 +257,11 @@ static order *create_order_i(keyword_t kwd, const char *sptr, int persistent,
order *ord = NULL;
int lindex;
if (keyword_disabled(kwd)) {
log_error("trying to create an order for disabled keyword %s.", keyword(kwd));
return NULL;
}
/* if this is just nonsense, then we skip it. */
if (lomem) {
switch (kwd) {