(type)
| 538 | } |
| 539 | |
| 540 | winid |
| 541 | Gem_create_nhwindow(type) |
| 542 | int type; |
| 543 | { |
| 544 | winid newid; |
| 545 | |
| 546 | switch (type) { |
| 547 | case NHW_MESSAGE: |
| 548 | if (iflags.msg_history < 20) |
| 549 | iflags.msg_history = 20; |
| 550 | else if (iflags.msg_history > 60) |
| 551 | iflags.msg_history = 60; |
| 552 | break; |
| 553 | case NHW_STATUS: |
| 554 | case NHW_MAP: |
| 555 | case NHW_MENU: |
| 556 | case NHW_TEXT: |
| 557 | break; |
| 558 | default: |
| 559 | panic("Tried to create window type %d\n", (int) type); |
| 560 | return WIN_ERR; |
| 561 | } |
| 562 | |
| 563 | newid = mar_create_window(type); |
| 564 | |
| 565 | if (newid == MAXWIN) { |
| 566 | panic("No window slots!"); |
| 567 | /* NOTREACHED */ |
| 568 | } |
| 569 | |
| 570 | return newid; |
| 571 | } |
| 572 | |
| 573 | void |
| 574 | Gem_nhbell() |
no test coverage detected