the #wizloaddes command - load a special level lua file */
| 373 | |
| 374 | /* the #wizloaddes command - load a special level lua file */ |
| 375 | int |
| 376 | wiz_load_splua(void) |
| 377 | { |
| 378 | if (wizard) { |
| 379 | char buf[BUFSZ]; |
| 380 | |
| 381 | buf[0] = '\0'; |
| 382 | getlin("Load which des lua file?", buf); |
| 383 | if (buf[0] == '\033' || buf[0] == '\0') |
| 384 | return ECMD_CANCEL; |
| 385 | if (!strchr(buf, '.')) |
| 386 | strcat(buf, ".lua"); |
| 387 | |
| 388 | lspo_reset_level(NULL); |
| 389 | (void) load_special(buf); |
| 390 | lspo_finalize_level(NULL); |
| 391 | |
| 392 | } else |
| 393 | pline(unavailcmd, ecname_from_fn(wiz_load_splua)); |
| 394 | return ECMD_OK; |
| 395 | } |
| 396 | |
| 397 | /* the #wizlevelport command - level teleport */ |
| 398 | int |
nothing calls this directly
no test coverage detected