comparison urogue/options.c @ 304:e52a8a7ad4c5

Fix many compiler warnings. There should only be two changes in behavior: arogue7/fight.c, arogue7/fight.c: a to-hit bonus is now correctly applied to characters who are not monks instead of monks who are not empty-handed. urogue/fight.c: fixed an interaction with the "debug" macro that could cause the wrong message to be displayed.
author John "Elwin" Edwards
date Wed, 14 Apr 2021 18:55:33 -0400
parents 0250220d8cdd
children
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
76 waddstr(hw, op->o_prompt); 76 waddstr(hw, op->o_prompt);
77 77
78 retval = (*op->o_getfunc)(&op->o_opt, hw); 78 retval = (*op->o_getfunc)(&op->o_opt, hw);
79 79
80 if (retval) 80 if (retval)
81 {
81 if (retval == QUIT) 82 if (retval == QUIT)
82 break; 83 break;
83 else if (op > optlist) /* MINUS */ 84 else if (op > optlist) /* MINUS */
84 { 85 {
85 wmove(hw, (int)(op - optlist) - 1, 0); 86 wmove(hw, (int)(op - optlist) - 1, 0);
89 { 90 {
90 putchar('\007'); 91 putchar('\007');
91 wmove(hw, 0, 0); 92 wmove(hw, 0, 0);
92 op--; 93 op--;
93 } 94 }
95 }
94 } 96 }
95 97
96 /* Switch back to original screen */ 98 /* Switch back to original screen */
97 99
98 mvwaddstr(hw, LINES - 1, 0, spacemsg); 100 mvwaddstr(hw, LINES - 1, 0, spacemsg);