mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-06 17:38:49 +01:00
Update objsave.c
This commit is contained in:
parent
3b5355b38c
commit
407c7b0e3a
1 changed files with 5 additions and 4 deletions
|
|
@ -381,8 +381,8 @@ void Crash_listrent(struct char_data *ch, char *name)
|
|||
FILE *fl;
|
||||
char filename[MAX_INPUT_LENGTH], buf[MAX_STRING_LENGTH], line[READ_SIZE];
|
||||
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))
|
||||
return;
|
||||
|
||||
|
|
@ -1205,8 +1205,9 @@ static int Crash_load_objs(struct char_data *ch) {
|
|||
return 1;
|
||||
}
|
||||
if (get_line(fl, line))
|
||||
sscanf(line,"%d %d %d %d %d %d",&rentcode, &timed,
|
||||
&netcost,&gold,&account,&nitems);
|
||||
mudlog(NRM, MAX(LVL_IMMORT, GET_INVIS_LEV(ch)), TRUE, "Failed to read player's rent code: %s.", GET_NAME(ch));
|
||||
else
|
||||
sscanf(line,"%d %d %d %d %d %d",&rentcode, &timed, &netcost, &gold, &account, &nitems);
|
||||
|
||||
if (rentcode == RENT_RENTED || rentcode == RENT_TIMEDOUT) {
|
||||
sprintf(str, "%d", SECS_PER_REAL_DAY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue