… | |
… | |
40 | player *pl; |
40 | player *pl; |
41 | |
41 | |
42 | trying_emergency_save = 1; |
42 | trying_emergency_save = 1; |
43 | |
43 | |
44 | LOG (llevError, "Emergency save: "); |
44 | LOG (llevError, "Emergency save: "); |
45 | for (pl = first_player; pl != NULL; pl = pl->next) |
45 | for (pl = first_player; pl; pl = pl->next) |
46 | { |
46 | { |
47 | if (!pl->ob) |
47 | if (!pl->ob) |
48 | { |
48 | { |
49 | LOG (llevError, "No name, ignoring this.\n"); |
49 | LOG (llevError, "No name, ignoring this.\n"); |
50 | continue; |
50 | continue; |
… | |
… | |
59 | */ |
59 | */ |
60 | if (!flag) |
60 | if (!flag) |
61 | { |
61 | { |
62 | strcpy (pl->maplevel, first_map_path); |
62 | strcpy (pl->maplevel, first_map_path); |
63 | |
63 | |
64 | if (pl->ob->map != NULL) |
|
|
65 | pl->ob->map = NULL; |
64 | pl->ob->map = 0; |
66 | |
|
|
67 | pl->ob->x = -1; |
65 | pl->ob->x = -1; |
68 | pl->ob->y = -1; |
66 | pl->ob->y = -1; |
69 | } |
67 | } |
70 | |
68 | |
71 | pl->save (1); |
69 | pl->save (1); |