Update objsave.c
This commit is contained in:
@@ -381,7 +381,7 @@ void Crash_listrent(struct char_data *ch, char *name)
|
|||||||
FILE *fl;
|
FILE *fl;
|
||||||
char filename[MAX_INPUT_LENGTH], buf[MAX_STRING_LENGTH], line[READ_SIZE];
|
char filename[MAX_INPUT_LENGTH], buf[MAX_STRING_LENGTH], line[READ_SIZE];
|
||||||
obj_save_data *loaded, *current;
|
obj_save_data *loaded, *current;
|
||||||
int rentcode,timed,netcost,gold,account,nitems, numread, len;
|
int rentcode = RENT_UNDEF, timed, netcost, gold, account, nitems;
|
||||||
|
|
||||||
if (!get_filename(filename, sizeof(filename), CRASH_FILE, name))
|
if (!get_filename(filename, sizeof(filename), CRASH_FILE, name))
|
||||||
return;
|
return;
|
||||||
@@ -1205,8 +1205,9 @@ static int Crash_load_objs(struct char_data *ch) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (get_line(fl, line))
|
if (get_line(fl, line))
|
||||||
sscanf(line,"%d %d %d %d %d %d",&rentcode, &timed,
|
mudlog(NRM, MAX(LVL_IMMORT, GET_INVIS_LEV(ch)), TRUE, "Failed to read player's rent code: %s.", GET_NAME(ch));
|
||||||
&netcost,&gold,&account,&nitems);
|
else
|
||||||
|
sscanf(line,"%d %d %d %d %d %d",&rentcode, &timed, &netcost, &gold, &account, &nitems);
|
||||||
|
|
||||||
if (rentcode == RENT_RENTED || rentcode == RENT_TIMEDOUT) {
|
if (rentcode == RENT_RENTED || rentcode == RENT_TIMEDOUT) {
|
||||||
sprintf(str, "%d", SECS_PER_REAL_DAY);
|
sprintf(str, "%d", SECS_PER_REAL_DAY);
|
||||||
|
|||||||
Reference in New Issue
Block a user