… | |
… | |
230 | |
230 | |
231 | char buf[MAX_BUF], bufall[MAX_BUF]; |
231 | char buf[MAX_BUF], bufall[MAX_BUF]; |
232 | |
232 | |
233 | pl->set_object (object::create ()); |
233 | pl->set_object (object::create ()); |
234 | pl->last_save_time = time (0); |
234 | pl->last_save_time = time (0); |
235 | pl->name_changed = 1; |
|
|
236 | |
235 | |
237 | assign (pl->savebed_map, first_map_path); |
236 | assign (pl->savebed_map, first_map_path); |
238 | |
237 | |
239 | /* Loop through the file, loading the rest of the values */ |
238 | /* Loop through the file, loading the rest of the values */ |
240 | while (fgets (bufall, MAX_BUF, thawer)) |
239 | while (fgets (bufall, MAX_BUF, thawer)) |
… | |
… | |
359 | { |
358 | { |
360 | strcpy (pl->maplevel, pl->savebed_map); |
359 | strcpy (pl->maplevel, pl->savebed_map); |
361 | pl->ob->x = pl->bed_x, pl->ob->y = pl->bed_y; |
360 | pl->ob->x = pl->bed_x, pl->ob->y = pl->bed_y; |
362 | } |
361 | } |
363 | |
362 | |
364 | /* make sure he's a player -- needed because of class change. */ |
|
|
365 | pl->name_changed = 1; |
|
|
366 | pl->last_save_tick = pticks; |
363 | pl->last_save_tick = pticks; |
367 | |
364 | |
368 | INVOKE_PLAYER (LOAD, pl, ARG_STRING (path)); |
365 | INVOKE_PLAYER (LOAD, pl, ARG_STRING (path)); |
369 | |
366 | |
370 | return pl; |
367 | return pl; |