comparison rogue3/init.c @ 300:0250220d8cdd

Fix an assortment of compiler warnings. A few potential bugs were removed in the process. Much code cleanup remains to be done.
author John "Elwin" Edwards
date Fri, 22 Nov 2019 21:18:27 -0500
parents 17005af49963
children e52a8a7ad4c5
comparison
equal deleted inserted replaced
299:74351bf23e5e 300:0250220d8cdd
546 while (getchar() != '\n') 546 while (getchar() != '\n')
547 continue; 547 continue;
548 } 548 }
549 549
550 struct h_list helpstr[] = { 550 struct h_list helpstr[] = {
551 '?', " prints help", 551 { '?', " prints help" },
552 '/', " identify object", 552 { '/', " identify object" },
553 'h', " left", 553 { 'h', " left" },
554 'j', " down", 554 { 'j', " down" },
555 'k', " up", 555 { 'k', " up" },
556 'l', " right", 556 { 'l', " right" },
557 'y', " up & left", 557 { 'y', " up & left" },
558 'u', " up & right", 558 { 'u', " up & right" },
559 'b', " down & left", 559 { 'b', " down & left" },
560 'n', " down & right", 560 { 'n', " down & right" },
561 'H', " run left", 561 { 'H', " run left" },
562 'J', " run down", 562 { 'J', " run down" },
563 'K', " run up", 563 { 'K', " run up" },
564 'L', " run right", 564 { 'L', " run right" },
565 'Y', " run up & left", 565 { 'Y', " run up & left" },
566 'U', " run up & right", 566 { 'U', " run up & right" },
567 'B', " run down & left", 567 { 'B', " run down & left" },
568 'N', " run down & right", 568 { 'N', " run down & right" },
569 't', "<dir> throw something", 569 { 't', "<dir> throw something" },
570 'f', "<dir> forward until find something", 570 { 'f', "<dir> forward until find something" },
571 'p', "<dir> zap a wand in a direction", 571 { 'p', "<dir> zap a wand in a direction" },
572 'z', " zap a wand or staff", 572 { 'z', " zap a wand or staff" },
573 '>', " go down a staircase", 573 { '>', " go down a staircase" },
574 's', " search for trap/secret door", 574 { 's', " search for trap/secret door" },
575 '.', " rest for a turn", 575 { '.', " rest for a turn" },
576 'i', " inventory", 576 { 'i', " inventory" },
577 'I', " inventory single item", 577 { 'I', " inventory single item" },
578 'q', " quaff potion", 578 { 'q', " quaff potion" },
579 'r', " read paper", 579 { 'r', " read paper" },
580 'e', " eat food", 580 { 'e', " eat food" },
581 'w', " wield a weapon", 581 { 'w', " wield a weapon" },
582 'W', " wear armor", 582 { 'W', " wear armor" },
583 'T', " take armor off", 583 { 'T', " take armor off" },
584 'P', " put on ring", 584 { 'P', " put on ring" },
585 'R', " remove ring", 585 { 'R', " remove ring" },
586 'd', " drop object", 586 { 'd', " drop object" },
587 'c', " call object", 587 { 'c', " call object" },
588 'o', " examine/set options", 588 { 'o', " examine/set options" },
589 CTRL('L'), " redraw screen", 589 { CTRL('L'), " redraw screen" },
590 CTRL('R'), " repeat last message", 590 { CTRL('R'), " repeat last message" },
591 ESCAPE, " cancel command", 591 { ESCAPE, " cancel command" },
592 'v', " print program version number", 592 { 'v', " print program version number" },
593 '!', " shell escape", 593 { '!', " shell escape" },
594 'S', " save game", 594 { 'S', " save game" },
595 'Q', " quit", 595 { 'Q', " quit" },
596 0, 0 596 { 0, 0 }
597 }; 597 };