| 150 | } |
| 151 | |
| 152 | DISABLE_WARNING_FORMAT_NONLITERAL |
| 153 | |
| 154 | /* #wizmakemap - discard current dungeon level and replace with a new one */ |
| 155 | int |
| 156 | wiz_makemap(void) |
| 157 | { |
| 158 | if (wizard) { |
| 159 | boolean was_in_W_tower = In_W_tower(u.ux, u.uy, &u.uz); |
| 160 | |
| 161 | makemap_prepost(TRUE, was_in_W_tower); |
| 162 | /* create a new level; various things like bestowing a guardian |
| 163 | angel on Astral or setting off alarm on Ft.Ludios are handled |
| 164 | by goto_level(do.c) so won't occur for replacement levels */ |
| 165 | mklev(); |
| 166 | makemap_prepost(FALSE, was_in_W_tower); |
| 167 | } else { |
| 168 | pline(unavailcmd, ecname_from_fn(wiz_makemap)); |
| 169 | } |
| 170 | return ECMD_OK; |
| 171 | } |
| 172 | |
| 173 | /* the #wizmap command - reveal the level map |
| 174 | and any traps or engravings on it */ |
nothing calls this directly
no test coverage detected