… | |
… | |
80 | |
80 | |
81 | my $path = sprintf "%s/%s/%s/%s", |
81 | my $path = sprintf "%s/%s/%s/%s", |
82 | cf::localdir, cf::playerdir, $ob->name, "nimbus"; |
82 | cf::localdir, cf::playerdir, $ob->name, "nimbus"; |
83 | |
83 | |
84 | if ($ob->map->path ne $path) { |
84 | if ($ob->map->path ne $path) { |
85 | my $nimbus = cf::map::get_map "/schmorp/nimbus"; |
85 | my $nimbus = cf::map::find "/schmorp/nimbus"; |
86 | $nimbus->set_path ($path); |
86 | $nimbus->set_path ($path); |
87 | $nimbus->set_unique (1); |
87 | $nimbus->set_unique (1); |
88 | |
88 | |
89 | $pl->set_savebed ($path, 24, 12); |
89 | $pl->set_savebed ($path, 24, 12); |
90 | } |
90 | } |
… | |
… | |
140 | teleport $pl, @savebed; |
140 | teleport $pl, @savebed; |
141 | |
141 | |
142 | # should make this a temporary map and let cf deal with it |
142 | # should make this a temporary map and let cf deal with it |
143 | unlink $map->path; |
143 | unlink $map->path; |
144 | unlink $map->path . ".pst"; |
144 | unlink $map->path . ".pst"; |
145 | unlink $map->path . ".cfperl"; |
|
|
146 | |
145 | |
147 | $map->delete_map; |
146 | $map->delete_map; |
148 | |
147 | |
149 | $pl->play_sound_player_only (cf::SOUND_PLAYER_DIES); |
148 | $pl->play_sound_player_only (cf::SOUND_PLAYER_DIES); |
150 | |
149 | |