mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-13 19:44:21 +01:00
Update for 3.54 release. --Rumble
This commit is contained in:
parent
9107040d32
commit
b93379190f
11 changed files with 231 additions and 185 deletions
|
|
@ -1326,12 +1326,12 @@ ACMD(do_load)
|
|||
send_to_char(ch, "Usage: load < obj | mob > <vnum> <number>\r\n");
|
||||
return;
|
||||
}
|
||||
if (!is_number(buf2) || !is_number(buf3)) {
|
||||
if (!is_number(buf2)) {
|
||||
send_to_char(ch, "That is not a number.\r\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (atoi(buf3) > 0 ) {
|
||||
if (atoi(buf3) > 0 && atoi(buf3) <= 100) {
|
||||
n = atoi(buf3);
|
||||
} else {
|
||||
n = 1;
|
||||
|
|
|
|||
|
|
@ -402,7 +402,7 @@ void page_string(struct descriptor_data *d, char *str, int keep_internal)
|
|||
if (!str || !*str)
|
||||
return;
|
||||
|
||||
if ((GET_PAGE_LENGTH(d->character) < 5 || GET_PAGE_LENGTH(d->character) > 255))
|
||||
if ((GET_PAGE_LENGTH(d->character) < 5 || GET_PAGE_LENGTH(d->character) > 254))
|
||||
GET_PAGE_LENGTH(d->character) = PAGE_LENGTH;
|
||||
d->showstr_count = count_pages(str, d->character);
|
||||
CREATE(d->showstr_vector, char *, d->showstr_count);
|
||||
|
|
|
|||
|
|
@ -488,11 +488,10 @@
|
|||
#define MAX_RAW_INPUT_LENGTH 1024 /* Max size of *raw* input */
|
||||
#define MAX_MESSAGES 60
|
||||
#define MAX_NAME_LENGTH 20
|
||||
/* ** MAX_PWD_LENGTH changed from 10 to 30 for ascii test - Sam ** */
|
||||
#define MAX_PWD_LENGTH 30
|
||||
#define MAX_TITLE_LENGTH 80
|
||||
#define HOST_LENGTH 40
|
||||
#define PLR_DESC_LENGTH 2048
|
||||
#define PLR_DESC_LENGTH 4096
|
||||
#define MAX_SKILLS 200
|
||||
#define MAX_AFFECT 32
|
||||
#define MAX_OBJ_AFFECT 6 /* Used in obj_file_elem */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue